private static void OnValuePropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            PolarAxisGridLineAnnotation annotation = sender as PolarAxisGridLineAnnotation;

            annotation.model.Value = annotation.Value;

            if (AutomationPeer.ListenerExists(AutomationEvents.PropertyChanged))
            {
                var peer = FrameworkElementAutomationPeer.FromElement(annotation) as PolarAxisGridLineAnnotationAutomationPeer;
                if (peer != null)
                {
                    peer.RaiseValueChangedAutomationEvent(e.OldValue != null ? e.OldValue.ToString() : string.Empty, e.NewValue != null ? e.NewValue.ToString() : string.Empty);
                }
            }
        }
Exemple #2
0
        private static void OnValuePropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            PolarAxisGridLineAnnotation annotation = sender as PolarAxisGridLineAnnotation;

            annotation.model.Value = annotation.Value;
        }