Esempio 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);
            }
        }
Esempio 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);
            }
        }
Esempio 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);
            }
        }
Esempio 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);
            }
        }
Esempio 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);
            }
        }
Esempio 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);
        }