예제 #1
0
 private static void IsRulerSelectedChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         ViewRulerControl control = source as ViewRulerControl;
         control.refreshViewIsRulerSelected();
     }
     catch
     {
     }
 }
예제 #2
0
 private static void ZoomScaleChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         ViewRulerControl control = source as ViewRulerControl;
         control.updatePosition();
     }
     catch
     {
     }
 }
예제 #3
0
 private static void ChangeImageElementTransform(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         ViewRulerControl control = source as ViewRulerControl;
         control.detailsLabel.LayoutTransform = control.ImageElementTransform.Inverse as Transform;
     }
     catch
     {
     }
 }