private static void VisibleRangePropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { AxisControl ac = (AxisControl)d; if (ac.scale != null) { ac.scale.Range = (double)e.NewValue; } }
private static void ForegroundPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { AxisControl ac = (AxisControl)d; ac.pen = new Pen(ac.Foreground, 1.0); }