C# Класс Btl.Controls.SpinnerControl

Interaction logic for SpinnerControl.xaml
Наследование: System.Windows.Controls.UserControl
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CoerceValue object
InitializeCommands void
LimitValueByBounds decimal
OnValueChanged void
SpinnerControl System

Защищенные методы

Метод Описание
OnDecrease ( ) : void
OnDecreaseCommand ( Object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnIncrease ( ) : void
OnIncreaseCommand ( Object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnValueChanged ( RoutedPropertyChangedEventArgs e ) : void

Raise the ValueChanged event. Derived classes can use this.

UpdateFormattedValue ( decimal newValue ) : void

Update the formatted value.

Приватные методы

Метод Описание
CoerceValue ( DependencyObject obj, object value ) : object
InitializeCommands ( ) : void

Since we're using RoutedCommands for the up/down buttons, we need to register them with the command manager so we can tie the events to callbacks in the control.

LimitValueByBounds ( decimal newValue, SpinnerControl control ) : decimal
OnValueChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs args ) : void

If the value changes, update the text box that displays the Value property to the consumer.

SpinnerControl ( ) : System

Описание методов

OnDecrease() защищенный Метод

protected OnDecrease ( ) : void
Результат void

OnDecreaseCommand() защищенный статический Метод

protected static OnDecreaseCommand ( Object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
sender Object
e System.Windows.Input.ExecutedRoutedEventArgs
Результат void

OnIncrease() защищенный Метод

protected OnIncrease ( ) : void
Результат void

OnIncreaseCommand() защищенный статический Метод

protected static OnIncreaseCommand ( Object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
sender Object
e System.Windows.Input.ExecutedRoutedEventArgs
Результат void

OnValueChanged() защищенный Метод

Raise the ValueChanged event. Derived classes can use this.
protected OnValueChanged ( RoutedPropertyChangedEventArgs e ) : void
e RoutedPropertyChangedEventArgs
Результат void

UpdateFormattedValue() защищенный Метод

Update the formatted value.
protected UpdateFormattedValue ( decimal newValue ) : void
newValue decimal
Результат void