private static void OnValueChanged(DependencyObject source,
                                           DependencyPropertyChangedEventArgs e)
        {
            MyControl myControl = (MyControl)source;

            myControl.OnValueChanged((double)e.OldValue, (double)e.NewValue);
        }