DirectX renderer .net6 port in WPF

Copper Contributor

Hi,

I am porting a directx renderer to .net6 from .net framework 4.8. Previously we could use D3DImage and draw to that in a wpf window. Now since its missing, i manage to draw using the window handle but now problem comes are GUI buttons, it draws on whole screen since parent window handle and handle for control are same. In winforms for example if i use splitview and render on right side, window handle of left and right is different and i can render there without issues. I also tried making a separate child window in wpf and then it works fine since the handle is different but having gui in one window and rendering in another is not really a good solution.

Is there a way to make child window inside main window in wpf in .net6 ?? or any other way to tackle this problem ?

Any help or tips will be appreciated. Thanks!

0 Replies