예제 #1
0
        private static void VisibleRangePropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AxisControl ac = (AxisControl)d;

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

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