

If (GamePad.GetState(PlayerIndex.One).Buttons.Back = ButtonState.Pressed) Protected override void Update(GameTime gameTime)

TODO: Unload any non ContentManager content here In Game2D.cs, Add unloadcontent method:.TODO: use this.Content to load your game content here SpriteBatch = new SpriteBatch(GraphicsDevice) Create a new SpriteBatch, which can be used to draw textures. TODO: Add your initialization logic here Graphics.PreferredBackBufferHeight = 600 Graphics.PreferredBackBufferWidth = 1000 Graphics = new GraphicsDeviceManager(this) In Game2D.cs, replace the class declaration with:.In Game2D.cs, replace the “ using…” lines with:.Right click on project name in Solution Explorer > add > class….In MainPage.xaml, Add the following to the contents:.Open MainPage.xaml and add the following the tag as an atribute:.

Click NO to the prompt about “Host as a new web site”
SILVERLIGHT FOR MAC OS 10.4 CODE
The silverarcade libraries help you keep most of you existing XNA code intact. Also, useful if you want to convert your existing XNA game to a silverlight app.
