title: PrintWindow WPF / DirectX
body: <p>Anyone know of a way to reliably take a snapshot of a WPF window? The <a href="http://msdn.microsoft.com/en-us/library/ms535695.aspx" rel="noreferrer">PrintWindow</a> api works well for "standard" win32 windows but since WPF uses DirectX, PrintWindow fails to capture an image. I think that one would need to grab the front buffer for the DirectX object associated with the window, but I am not sure how to do that.</p>
  
  <p>Thanks!</p>