protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            // Set the sharing mode of the graphics device to turn on XNA rendering
            SharedGraphicsDeviceManager.Current.GraphicsDevice.SetSharingMode(true);

            spriteBatch = new SpriteBatch(graphicsDevice);

            graphicsDevice.BlendState = BlendState.Additive;

            scene = new SubMenuScene(graphicsDevice);
            scene.LoadContent(contentManager);

            // Start the timer
            timer.Start();

            base.OnNavigatedTo(e);
        }
예제 #2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            // Set the sharing mode of the graphics device to turn on XNA rendering
            SharedGraphicsDeviceManager.Current.GraphicsDevice.SetSharingMode(true);

            spriteBatch = new SpriteBatch(graphicsDevice);

            graphicsDevice.BlendState = BlendState.Additive;

            scene = new SubMenuScene(graphicsDevice);
            scene.LoadContent(contentManager);

            // Start the timer
            timer.Start();

            base.OnNavigatedTo(e);
        }