Can I mix MonoGame with XAML in WPF appliaction? For example: core of game written in MonoGame, but UI written in XAML and placed on top of MonoGame-Canvas. I know that I can use XAML on MonoGame in WinRT. Can I do same things in WPF?
You should read Nick Gravelyn's blog post: http://blogs.msdn.com/b/nicgrave/archive/2010/07/25/rendering-with-xna-framework-4-0-inside-of-a-wpf-application.aspx
That should work for MonoGame as well, except for the last part that uses the content build pipeline as MonoGame does not yet have its own content build pipeline implementation.
You can find some samples here: https://github.com/CartBlanche/MonoGame-Samples
MonoGame 3.2 supports WPF/DirectX interop now. http://www.monogame.net/2014/04/07/monogame-3-2/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With