private void XyOnClick(object sender, RoutedEventArgs e)
 {
     ZoomingMode = ZoomingOptions.XY;
 }
 private void ToogleZoomingMode(object sender, RoutedEventArgs e)
 {
     switch (ZoomingMode)
     {
         case ZoomingOptions.None:
             ZoomingMode = ZoomingOptions.X;
             break;
         case ZoomingOptions.X:
             ZoomingMode = ZoomingOptions.Y;
             break;
         case ZoomingOptions.Y:
             ZoomingMode = ZoomingOptions.Xy;
             break;
         case ZoomingOptions.Xy:
             ZoomingMode = ZoomingOptions.None;
             break;
         default:
             throw new ArgumentOutOfRangeException();
     }
 }