WindowsFormsDemo.rar [47.5kb] – XNA GSE 1.0 Refresh Project w/ Binaries
Only works with XNA GSE 1.0 Refresh, not in 2.0! See this post.
Here’s a sample demonstrating what I explained in an earlier blog post, but with quite a few updates and precisions.
Here’s what I deduced after working three evenings on this sample :
- Only docked controls work, which means you need to create or use docked containers for all the controls you want to append (except the render panel which must not be docked, but anchored).
- Only mouse input works, like Leaf pointed out on my other post, and as I have tested afterwards. Text input is eaten by XNA.
- The XNA guys clearly didn’t want us to do that, so it’s not “the right way”. There’s a myriad of problems that can happen. I had to work-around on many aspects, like the auto-sizing of the form based on the presentation parameters’ backbuffer size and the background that’s never repainted… And it’s definitely not perfect.
- It’s still the simplest way, and it works well enough for me. I can’t imagine re-writing the whole back-end of the
Hope it helps!