private static void OnAxisPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { CartesianPlotBandAnnotation annotation = sender as CartesianPlotBandAnnotation; if (annotation.Axis != null) { annotation.model.Axis = annotation.Axis.model; } else { annotation.model.Axis = null; } }
private static void OnFillPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { CartesianPlotBandAnnotation annotation = sender as CartesianPlotBandAnnotation; annotation.presenter.Fill = e.NewValue as Brush; }
private static void OnToPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { CartesianPlotBandAnnotation annotation = sender as CartesianPlotBandAnnotation; annotation.model.To = annotation.To; }