4/27/2011

This sample demonstrates how to use the XNA Framework to create a graphics primitive and combine it with Silverlight controls in a Windows Phone application. It also uses the Silverlight input system to update the UI based on gestures from the user.

Using the UIElementRenderer class, you can safely draw Silverlight elements and XNA Framework content together on the screen. Using the Silverlight input system, you can use the UI and logic of Silverlight controls. You can also take advantage of Silverlight text rendering, including international fonts. This means you no longer need to create sprite fonts for all the text in all the various versions of your XNA Framework applications.

For more information see How to: Combine Silverlight and the XNA Framework in a Windows Phone Application.

Important Note:

You must install Windows Phone Developer Tools to run this sample. To get started, see Installing Windows Phone Developer Tools.