Ejemplo n.º 1
0
        private static void VisibleRangePropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AxisControl ac = (AxisControl)d;

            if (ac.scale != null)
            {
                ac.scale.Range = (double)e.NewValue;
            }
        }
Ejemplo n.º 2
0
        private static void ForegroundPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AxisControl ac = (AxisControl)d;

            ac.pen = new Pen(ac.Foreground, 1.0);
        }