Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The infrastructure supporting hybrid apps allows Silverlight and XNA to coexist on the same PhoneApplicationPage within what is a Silverlight app. The two technologies, however, differ significantly in their respective UI programming models, and integrating them relies on the following three components:
• SharedGraphicsDeviceManager—This class is used to provide side-by-side rendering of Silverlight and XNA.
• GameTimer—This class provides notifications of XNA game loop events.
• UIElementRenderer—This class allows you to display Silverlight UIElements within XNA.
Much of this chapter is devoted to exploring these components in detail. The chapter begins, however, by looking at the Visual Studio project templates used to create hybrid apps.