Ejemplo n.º 1
0
 private static void IsRulerSelectedChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         ViewRulerControl control = source as ViewRulerControl;
         control.refreshViewIsRulerSelected();
     }
     catch
     {
     }
 }
Ejemplo n.º 2
0
 private static void ZoomScaleChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         ViewRulerControl control = source as ViewRulerControl;
         control.updatePosition();
     }
     catch
     {
     }
 }
Ejemplo n.º 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
     {
     }
 }