How to integrate silverlight with XNA
I have an existing XNA app for Windows phone 8. I have to integrate Silverlight for accessing Facebook from my game. So I would like to create a Silverlight app, and I just want to use Facebook login and return a token from facebook. Is there any other way in XNA, or I would like to get support for using Silverlight in an XNA app.
Mine is a pure XNA app, does not have XAML Contents. I have created the app as pure XNA , Even menus are controlled by XNA, so i would like to know how I can convert this to XAML (if it's needed for Silverlight) with minimal effort.
Please let me know if there is any other methods to have head to head gaming in XNA with Facebook friends.
Have you seen the Silverlight-XNA sample? That's the closest you can get to what you're looking for.
Use SilverSprite, which should be all you need.
Their website:
Run XNA games without code changes in Silverlight. Since the game compiles into straight Silverlight code, it will run anywhere that Silverlight can. Now with support for Silverlight 5 Toolkit's SpriteBatch and other XNA compatibility.
上一篇: 为什么Silverlight ContentControls不被垃圾收集?
下一篇: 如何将Silverlight与XNA整合