Home > Forum > WPF rendering with D3DImage

WPF rendering with D3DImage

Feb 04 (3 months ago)
Ola Nygren wrote
I see that the WPF video player is a winforms control hosted with WindowsFormsHost. That might cause some undesired layering when rendering. Have you considered implementing a WPF renderer using D3DImage and DirectX to avoid layering?
Reply
1 Answer
Feb 04 (3 months ago)
Roman Miniailov agent wrote
WPF video player is not a WindowsFormsHost-based control. It's an Image control. And we use WriteableBitmap to draw.

You can check the attached source code. Also, you can make your own implementation with D3DImage used. IVideoView implementation is required.