Captura.NumericBox.NumericBox C# (CSharp) Method

NumericBox() public method

public NumericBox ( ) : System.Windows
return System.Windows
        public NumericBox()
        {
            InitializeComponent();

            CommandBindings.Add(new CommandBinding(IncreaseCommand,
                (s, e) => Value++,
                (s, e) => e.CanExecute = Value < Maximum));

            CommandBindings.Add(new CommandBinding(DecreaseCommand,
                (s, e) => Value--,
                (s, e) => e.CanExecute = Value > Minimum));

            TextBOX.InputBindings.Add(new InputBinding(IncreaseCommand, new KeyGesture(Key.Up)));
            TextBOX.InputBindings.Add(new InputBinding(DecreaseCommand, new KeyGesture(Key.Down)));

            Last = Value;
        }