Exemplo n.º 1
0
        private void TheSurface_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            visibleRegionManager.UpdateViewportSize(e.NewSize);

            myDrawingVisual.SetSize(virtualSurfaceHost);
            this.tracker.MaxPosition = new System.Numerics.Vector3(
                TILESIZE * (int)Math.Pow(2, ZoomLevel) - (int)virtualSurfaceHost.ActualWidth,
                TILESIZE * (int)Math.Pow(2, ZoomLevel) - (int)virtualSurfaceHost.ActualHeight, 0);
        }
Exemplo n.º 2
0
        private void ElementCompositionVisual_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            rootVisual.SetSize(hostElement);
            swapChainVisual.SetSize(hostElement);

            if (canvasDevice != null)
            {
                Dispose();
                canvasDevice = null;
            }

            if (canvasDevice == null)
            {
                canvasDevice = CanvasDevice.GetSharedDevice();
                SetDevice(canvasDevice);
            }
        }
Exemplo n.º 3
0
 private void PlayerHolder_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     _playerVisual.SetSize(playerHolder);
 }
Exemplo n.º 4
0
        private void TheSurface_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            visibleRegionManager.UpdateViewportSize(e.NewSize);

            myDrawingVisual.SetSize(virtualSurfaceHost);
        }
Exemplo n.º 5
0
 private void Spritehost_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     videoVisual.SetSize(spritehost);
 }