SharpDX supports WPF via SharpDXElement.
Take a look in the Samples repository at the Toolkit.sln
- all projects that have WPF
in their name use SharpDXElement
as rendering surface:
MiniCube.WPF
- demonstrates basic SharpDX-WPF integration;MiniCube.SwitchContext.WPF
- demonstrates basic scenario when lifetime of the Game instance is different from the lifetime of SharpDXElement (in other words - when there is need to switch game rendering on another surface).MiniCube.SwitchContext.WPF.MVVM
- same as above, but more 'MVVM-way'.
Update: SharpDX.Toolkit has been deprecated and it is not maintained anymore. It is moved to a separate repository. The Toolkit samples were deleted, however I changed the link to a changeset where they are still present.