示例#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
     {
     }
 }