Inheritance: System.Windows.Controls.Control, IValidateInput
コード例 #1
0
ファイル: UpDownBase.cs プロジェクト: Master-MiShutka/TMPApps
        private static void OnReadOnlyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            UpDownBase inputBase = o as UpDownBase;

            if (inputBase != null)
            {
                inputBase.OnReadOnlyChanged((bool)e.OldValue, (bool)e.NewValue);
            }
        }
コード例 #2
0
ファイル: UpDownBase.cs プロジェクト: Master-MiShutka/TMPApps
        private static void OnCultureInfoChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            UpDownBase inputBase = o as UpDownBase;

            if (inputBase != null)
            {
                inputBase.OnCultureInfoChanged((CultureInfo)e.OldValue, (CultureInfo)e.NewValue);
            }
        }
コード例 #3
0
ファイル: UpDownBase.cs プロジェクト: Master-MiShutka/TMPApps
        private static void OnValueChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            UpDownBase upDownBase = o as UpDownBase;

            if (upDownBase != null)
            {
                upDownBase.OnValueChanged((double)e.OldValue, (double)e.NewValue);
            }
        }
コード例 #4
0
ファイル: UpDownBase.cs プロジェクト: Master-MiShutka/TMPApps
        private static void OnMinimumChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            UpDownBase numericUpDown = o as UpDownBase;

            if (numericUpDown != null)
            {
                numericUpDown.OnMinimumChanged((double)e.OldValue, (double)e.NewValue);
            }
        }
コード例 #5
0
ファイル: UpDownBase.cs プロジェクト: Master-MiShutka/TMPApps
        private static void OnFormatStringChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            UpDownBase numericUpDown = o as UpDownBase;

            if (numericUpDown != null)
            {
                numericUpDown.OnFormatStringChanged((string)e.OldValue, (string)e.NewValue);
            }
        }
コード例 #6
0
ファイル: UpDownBase.cs プロジェクト: Master-MiShutka/TMPApps
        private static object OnCoerceMinimum(DependencyObject d, object baseValue)
        {
            UpDownBase numericUpDown = d as UpDownBase;

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

            return(baseValue);
        }