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

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

            annotation.model.To = annotation.To;
        }