Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Supporting Components

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial