private static void ZoomScaleChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { try { ViewRegionControl control = source as ViewRegionControl; control.updatePosition(); } catch { } }
private static void ChangeCurrentShape(DependencyObject source, DependencyPropertyChangedEventArgs e) { try { ViewRegionControl control = (source as ViewRegionControl); control.updatePosition(); } catch { } }
private static void IsRoiSelectedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { try { ViewRegionControl control = (d as ViewRegionControl); control.refreshIsSelected((bool)e.NewValue); } catch { } }
private static void ChangeRoiDetails(DependencyObject source, DependencyPropertyChangedEventArgs e) { try { ViewRegionControl control = (source as ViewRegionControl); control.refreshDetails(); } catch { } }
private static void ChangeRoiColor(DependencyObject d, DependencyPropertyChangedEventArgs e) { try { if (e.NewValue != null) { ViewRegionControl control = (d as ViewRegionControl); control.roiColorChanged(); } } catch { } }
private static void IsDrawingChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { try { ViewRegionControl control = (d as ViewRegionControl); if (control.CurrentShape == RoiShape.Polygon) { if ((bool)e.NewValue == false && (bool)e.OldValue == true) { control.updatePosition(); control.RemoveFirstThumbSpecialEvent(); } } } catch { } }
private static void RoisStyleChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { ViewRegionControl control = (source as ViewRegionControl); control.updatePosition(); }
private static void TrailPointChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ViewRegionControl control = (d as ViewRegionControl); control.updateDrawingTrail(); }