Example #1
0
        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;
            }
        }
Example #2
0
        private static void OnFillPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            CartesianPlotBandAnnotation annotation = sender as CartesianPlotBandAnnotation;

            annotation.presenter.Fill = e.NewValue as Brush;
        }
Example #3
0
        private static void OnToPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            CartesianPlotBandAnnotation annotation = sender as CartesianPlotBandAnnotation;

            annotation.model.To = annotation.To;
        }