Esempio 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(SharedGraphicsDeviceManager.Current.GraphicsDevice);
            Global.GraphicsDevice = spriteBatch.GraphicsDevice;
            SetWindowSize();

            load  = new LoadScene(this);
            scene = load;
            load.Initialize();
            load.running = true;

            timer.Start();
            base.OnNavigatedTo(e);
        }