Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 3
0
        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);
        }