private static void OnValueChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            UpDownBase <T> upDownBase = o as UpDownBase <T>;

            if (upDownBase != null)
            {
                upDownBase.OnValueChanged((T)e.OldValue, (T)e.NewValue);
            }
        }
        private static void OnMouseWheelActiveOnFocusChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            UpDownBase <T> upDownBase = o as UpDownBase <T>;

            if (upDownBase != null)
            {
                upDownBase.MouseWheelActiveTrigger = ((bool)e.NewValue)
                  ? MouseWheelActiveTrigger.FocusedMouseOver
                  : MouseWheelActiveTrigger.MouseOver;
            }
        }
        private static object OnCoerceMinimum(DependencyObject d, object baseValue)
        {
            UpDownBase <T> upDown = d as UpDownBase <T>;

            if (upDown != null)
            {
                return(upDown.OnCoerceMinimum((T)baseValue));
            }

            return(baseValue);
        }