C# 클래스 Btl.Controls.SpinnerControl

Interaction logic for SpinnerControl.xaml
상속: System.Windows.Controls.UserControl
파일 보기 프로젝트 열기: barrylapthorn/countdown_timer 1 사용 예제들

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