Пример #1
0
        private static void OnValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            NumericBox numericBoxControl = (NumericBox)sender;

            numericBoxControl.value = (int)args.NewValue;
            numericBoxControl.PART_NumericTextBox.Text = numericBoxControl.value.ToString(numericBoxControl.ValueFormat);
            numericBoxControl.OnValueChanged((int)args.OldValue, (int)args.NewValue);
        }
Пример #2
0
        private static void OnMinimumChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            NumericBox numericBoxControl = new NumericBox();

            numericBoxControl.minimum = (int)args.NewValue;
        }
Пример #3
0
        private static void OnValueFormatChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            NumericBox numericBoxControl = new NumericBox();

            numericBoxControl.valueFormat = (string)args.NewValue;
        }