Ejemplo n.º 1
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);

            Leaderboard.ItemsSource = (Application.Current as App).Leaderboard.Entries;

            // Start the timer
            timer.Start();

            base.OnNavigatedTo(e);
        }
        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);

            Leaderboard.ItemsSource = (Application.Current as App).Leaderboard.Entries;

            // Start the timer
            timer.Start();

            base.OnNavigatedTo(e);
        }