private static void UpdateUIRepresentation(DependencyObject d, DependencyPropertyChangedEventArgs e) { CursorNearestRadioBandLine graph = (CursorNearestRadioBandLine)d; if ((bool)e.NewValue) { graph.UpdateUIRepresentation(); } }
private static void OnPositionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { CursorNearestRadioBandLine graph = (CursorNearestRadioBandLine)d; graph.UpdateUIRepresentation((Point)e.NewValue); }