Embedding a 3D view with OpenGL backend within a WPF view
I'm not looking for detailed steps. I'm just need to know how to render directly to a control within a WPF application. I have played around with Silk.NET which I have loved. Is there a way I can use this with a view within WPF?
3 Replies
you'll have to deal with airspace in WPF apart from that yes you can host
you'll have to host the silk.net window in wpf
as a win32 control or d3d9 content
I won't be able to interface with Silk directly? I'll have to do some interop?
I'd like to avoid that
I have found this solution
https://github.com/qian-o/SilkRenderer
I've managed to get a working copy in .NET. I'd like to get it working with NetFx. I'm currently getting a System.PlatformNotSupportedExceptio
GitHub
GitHub - qian-o/SilkRenderer: WPF、WinUI3 Use Silk.NET to draw examp...
WPF、WinUI3 Use Silk.NET to draw examples (OpenGL, DirectX) - qian-o/SilkRenderer