An example describes how to use unmanaged DirectX code with WPF by using d3dImage