Ejemplo n.º 1
0
        public static void DecreaseCommand_Execute(object sender, ExecutedRoutedEventArgs e)
        {
            DelcamNumericUpDown objControl = (DelcamNumericUpDown)sender;

            if (objControl != null)
            {
                objControl.Decrease();
            }
        }
Ejemplo n.º 2
0
        private static void ValuePropertyChanged(DependencyObject g, DependencyPropertyChangedEventArgs e)
        {
            DelcamNumericUpDown numericUpDown = (DelcamNumericUpDown)g;

            decimal oldValue = (decimal)e.OldValue;
            decimal newValue = (decimal)e.NewValue;

            RoutedPropertyChangedEventArgs <decimal> args = new RoutedPropertyChangedEventArgs <decimal>(oldValue,
                                                                                                         newValue,
                                                                                                         ValueChangedEvent);

            numericUpDown.OnValueChanged(args);
        }