title: DirectX and WPF
body: <p>I am trying to develop an application where the UI part is designed by WPF and the engine is developed using C++.
  I am trying to render a scene using DirectX in native code by getting the window's handle from WPF using WindowsFormsHost method.</p>
  
  <p>Though i do not get any error, no image renders on the screen.</p>
  
  <p>As far as the handle is concerned, I dont see a problem because when i render the scene using OpenGL using the same handle in native code, it works properly.</p>
  
  <p>As far as the initialization part and rendering part is concerned, I dont see a problem because the same part of code works fine in a separate Win32 project.</p>
  
  <p>What might be the cause of this problem?
  The version of DirectX being used is DirectX10 and OS used is Vista.</p>
  
  <p>Thanks in advance.</p>