Texture2D backgroundTexture; //in NavigatedTo() Method backgroundTexture = contentManager.Load<Texture2D>("2");// 2 is Image name //in OnUpdate() Method rectangleBackground = new Microsoft.Xna.Framework.Rectangle(0,0, backgroundTexture.Height, backgroundTexture.Width); // and Finally in onDraw() Method spriteBatch.Draw(backgroundTexture, rectangleBackground, Color.White);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)