Jump to content
  • Advertisement
Sign in to follow this  
ProjectOlle

XNA and XAML

This topic is 2685 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey Guys!

I need to use XNA together with XAML, and it seems quite difficult.

I've been following this tutorial http://petosky.net/node/13 and it seems fine, except that apparently between this was written and I've read it this step fails me.

IntPtr handle = RenderPanel.Handle; new Thread(new ThreadStart(() => { game = new EditorGame(handle); game.Run(); })).Start();

Apparently I'm missing a reference or the syntax has been changed from RenderPanel.Handle, cuz that isnt there anymore :o .. Anyone know an alternative, or where this handle can be accessed from now a days?

Share this post


Link to post
Share on other sites
Advertisement
Uh and btw, yes its 4.0 I'm working with :) The solution seems useable enough, however It doesnst show how to add to the content and the content pipeline which I've done I my game :(

Gonna give it a try but if anyone know of some way to implement an entire XNA project more or less directly I would send them a dancing monkey filled with joy for their amusement :D

Share this post


Link to post
Share on other sites
Okay I got it working :D turns out that http://blogs.msdn.co...studio-4-0.aspx is pretty awesome and pretty easy to use :D

Now I have a different problem.

Im working with the Kinect, so what I am doing right now is that I have a XAML project which I use to run my Kinect Game from a XNA 4.0 project. In the game I have an avatar I would like to control with the Kinect.

In order to make the kinect function I needed to use another XAML project which I include in the first one, and display it as an additional window. So I got two windows running, one with my game and one with my Kinect, and that works fine.. Now all the tracking is done from the XAML project handling the Kinect, how on earth do I set my avatars values from the XAML project which does not have an instance in my XNA project? :o

All is run from the original XAML project that creates an instance of my Game and run from there, and the App file turns on the Kinect project, so no where relevant does these two projects ever meet to create an instance of one in the other.. Any ideas?

Can I export the values in an alternative file and then read it in the Game project or what the deuce to do? :o

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!