Skip to main content
2 of 2
deleted 1122 characters in body; edited title
House
  • 73.5k
  • 17
  • 188
  • 276

Where does the Game class come from in the DrawableGameComponent constructor?

I'm making a project to Windows Phone using Silverlight + XNA, but I don't know how I can use the DrawableGameComponent because the constructor requires a Game class, it looks like this:

Planet.cs

class Planet : DrawableGameComponent
{
    public Planet(Game game): base(game){
        
    {
}

but in my first page of Silverlight and XNA project not is a Game class it's this:

GamePage.xaml.cs

public partial class GamePage : PhoneApplicationPage
{
   ...
}
        

Where do I find the Game class to pass into the DrawableGameComponent constructor?