Exemplo n.º 1
0
        private static void OnReadOnlyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            UpDownBase inputBase = o as UpDownBase;

            if (inputBase != null)
            {
                inputBase.OnReadOnlyChanged((bool)e.OldValue, (bool)e.NewValue);
            }
        }
Exemplo n.º 2
0
        private static void OnCultureInfoChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            UpDownBase inputBase = o as UpDownBase;

            if (inputBase != null)
            {
                inputBase.OnCultureInfoChanged((CultureInfo)e.OldValue, (CultureInfo)e.NewValue);
            }
        }
Exemplo n.º 3
0
        private static void OnValueChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            UpDownBase upDownBase = o as UpDownBase;

            if (upDownBase != null)
            {
                upDownBase.OnValueChanged((double)e.OldValue, (double)e.NewValue);
            }
        }
Exemplo n.º 4
0
        private static void OnMinimumChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            UpDownBase numericUpDown = o as UpDownBase;

            if (numericUpDown != null)
            {
                numericUpDown.OnMinimumChanged((double)e.OldValue, (double)e.NewValue);
            }
        }
Exemplo n.º 5
0
        private static void OnFormatStringChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            UpDownBase numericUpDown = o as UpDownBase;

            if (numericUpDown != null)
            {
                numericUpDown.OnFormatStringChanged((string)e.OldValue, (string)e.NewValue);
            }
        }
Exemplo n.º 6
0
        private static object OnCoerceMinimum(DependencyObject d, object baseValue)
        {
            UpDownBase numericUpDown = d as UpDownBase;

            if (numericUpDown != null)
            {
                return(numericUpDown.OnCoerceMinimum((double)baseValue));
            }

            return(baseValue);
        }