Пример #1
0
 // Event raised by rotating the mouse wheel
 private void zoomAndPanControl_MouseWheel(object sender, MouseWheelEventArgs e)
 {
     ZoomAndPanEvents.MouseWheel(sender, e, zoomAndPanControl, coordinateCanvas);
     if (zoomAndPanControl.ContentScale < 0.15)
     {
         zoomAndPanControl.ContentScale = 0.15;
     }
 }
        // Event raised by rotating the mouse wheel
        private void zoomAndPanControl_MouseWheel(object sender, MouseWheelEventArgs e)
        {
            ZoomAndPanEvents.MouseWheel(sender, e, zoomAndPanControl, canvas1);

            if (zoomAndPanControl.ContentScale < 1)
            {
                canvas1.Width  = zoomAndPanControl.ContentViewportWidth;
                canvas1.Height = zoomAndPanControl.ContentViewportHeight;
                zoomAndPanControl.ContentOffsetX = 0;
                zoomAndPanControl.ContentOffsetY = 0;
            }
        }
Пример #3
0
 // Event raised by rotating the mouse wheel
 private void zoomAndPanControl_MouseWheel(object sender, MouseWheelEventArgs e)
 {
     ZoomAndPanEvents.MouseWheel(sender, e, zoomAndPanControl, canvas1);
 }