There are two documented ways to interop DirectX with WPF
D3DImage
HwndHost
However, the frame rate in each of these(just the D3DImage
) methods will be limited to WPF's variable frame rate. See my SO question
The only One way to avoid this is to use the DirectComposition API to have the Composition Engine (DWM) compose your swapchain directly on top of your WPF window.
Hit testing will just fall though.
Sizing and Positioning will require low level work not included in this sample.
The swapchain's contents are in blue: