title: Display WPF controls over OpenGL window in Windows desktop application
body: <p>We're developing Windows desktop app with full-screen OpenGL graphics. Now we want to display a bunch of controls over the OpenGL (arrows, buttons, etc.) It turns out it is very difficult to do that.</p>
  
  <p>The majority of tutorials suggest using WindowsFormsHost for OpenGL rendering, and we did so: <a href="http://www.codeproject.com/Articles/23736/Creating-OpenGL-Windows-in-WPF" rel="nofollow noreferrer">http://www.codeproject.com/Articles/23736/Creating-OpenGL-Windows-in-WPF</a> </p>
  
  <p>Unfortunately now we cannot draw WPF controls over WindowsFormsHost, there's a lot of discussion about this all over the internet too: <a href="https://stackoverflow.com/questions/9920480/windowsformshost-is-always-the-most-top-from-wpf-element">WindowsFormsHost is always the most top from WPF element</a>
  <a href="https://stackoverflow.com/questions/5978917/render-wpf-control-on-top-of-windowsformshost">Render WPF control on top of WindowsFormsHost</a></p>
  
  <p>There are some hacks that can work around this, but they all seem very dirty.
  Is there a proper way to draw OpenGL directly in WPF without messing with Windows Forms? (I just have no idea why you cannot have this in WPF directly).</p>
  
  <p>In short: is there a known solution for drawing UI over OpenGL in WPF applications?</p>