Пример #1
0
        private static void OnHorizontalAxisPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            CartesianFromToAnnotation annotation = sender as CartesianFromToAnnotation;

            if (annotation.HorizontalAxis != null)
            {
                annotation.model.FirstAxis = annotation.HorizontalAxis.model;
            }
            else
            {
                annotation.model.FirstAxis = null;
            }
        }
Пример #2
0
        private static void OnHorizontalFromPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            CartesianFromToAnnotation annotation = sender as CartesianFromToAnnotation;

            annotation.model.HorizontalFrom = annotation.HorizontalFrom;
        }
Пример #3
0
        private static void OnVerticalToPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            CartesianFromToAnnotation annotation = sender as CartesianFromToAnnotation;

            annotation.model.VerticalTo = annotation.VerticalTo;
        }