Пример #1
0
        private static void OnPolarAxisChanged(DependencyObject target, DependencyPropertyChangedEventArgs args)
        {
            RadPolarChart chart   = target as RadPolarChart;
            PolarAxis     oldAxis = args.OldValue as PolarAxis;
            PolarAxis     newAxis = args.NewValue as PolarAxis;

            chart.polarAxisCache = newAxis;
            if (chart.polarAxisCache != null)
            {
                chart.polarAxisCache.type = AxisType.First;
            }

            chart.OnAxisChanged(oldAxis, newAxis);
        }
Пример #2
0
        private static void OnMaximumChanged(DependencyObject target, DependencyPropertyChangedEventArgs args)
        {
            PolarAxis presenter = target as PolarAxis;

            (presenter.model as NumericalAxisModel).Maximum = (double)args.NewValue;
        }