title: Native OpenGL in winforms panel in WPF
body: <p>In my project, I already have a native C++ library wrapped in C++\CLI, then referenced in my WPF application. Within my application, I have an aqua-colored Winforms panel displayed:</p>
  
  <pre><code>        &lt;WindowsFormsHost x:Name="openGLWF"&gt;
              &lt;winForms:Panel x:Name="openGLPanel1"
                      Dock="Fill" 
                      BackColor="Aqua" Paint="Panel_Paint" /&gt;
          &lt;/WindowsFormsHost&gt;
  </code></pre>
  
  <p>What I'm trying to do is have the panel to be used to draw my OpenGL content from my native library. I've search around and through books that hints that it is possible, but the "solutions" I've found are not thorough and are too ambiguous to implement. </p>
  
  <p><strong>NOTE:</strong>
  <em>After being flagged by user <strong>gbjbaanb</strong> of a possible duplicate that was answered <strong>5 years ago,</strong> my issue is different as the "original" that he referenced deals with .NET 4.0 and Winforms, where I'm dealing with .NET 4.5.2 and WPF with a Winforms panel inside of it.</em> </p>