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