Beispiel #1
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;
 }
Beispiel #2
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;
    }
Beispiel #3
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);
            }
        }
Beispiel #4
0
        private static object OnCoerceMaximum(DependencyObject d, object baseValue)
        {
            UpDownBase <T> upDown = d as UpDownBase <T>;

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

            return(baseValue);
        }