C# Class Gymnastika.Controls.TimePicker

Inheritance: System.Windows.Controls.Control
Afficher le fichier Open project: weiqiyiji/Gymnastika

Méthodes publiques

Свойство Type Description
MaxTimeProperty System.Windows.DependencyProperty
MinTimeProperty System.Windows.DependencyProperty
SelectedHourProperty System.Windows.DependencyProperty
SelectedMinuteProperty System.Windows.DependencyProperty
SelectedSecondProperty System.Windows.DependencyProperty
SelectedTimeChangedEvent System.Windows.RoutedEvent
SelectedTimeProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
IncrementDecrementNumber ( string num, int minValue, int maxVal, bool increment ) : int
OnApplyTemplate ( ) : void

override to hook to the Control template elements

TimePicker ( ) : System

Default constructor

ValidateNumber ( int newNum, int minValue, int maxValue ) : int
ValidateNumber ( string newNum, int minValue, int maxValue ) : int

Private Methods

Méthode Description
AdjustCarretIndexOrMoveToNeighbour ( TextBox current, TextBox neighbour ) : void
AdjustText ( TextBox textBox, string newText ) : string
BeginUpdateSelectedTime ( ) : void
DecrementTime ( object sender, RoutedEventArgs e ) : void
EndUpdateSelectedTime ( ) : void
ForceValidSelectedTime ( DependencyObject sender, object value ) : object
HoursKeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void
HoursTextChanged ( object sender, System.Windows.Input.TextCompositionEventArgs e ) : void
IncreaseTime ( object sender, RoutedEventArgs e ) : void
IncrementDecrementTime ( Key selectedKey ) : bool
IncrementDecrementTime ( bool increment ) : void
MinutesKeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void
MinutesTextChanged ( object sender, System.Windows.Input.TextCompositionEventArgs e ) : void
OnTimeSelectedChanged ( System.TimeSpan newTime, System.TimeSpan oldTime ) : void
SecondsKeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void
SecondsTextChanged ( object sender, System.Windows.Input.TextCompositionEventArgs e ) : void
SelectedTimePropertyChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SetNewTime ( TimePicker timePicker ) : void
TextGotFocus ( object sender, RoutedEventArgs e ) : void
TrimSelectedText ( TextBox textBox ) : void
TryFocusNeighbourControl ( TextBox currentControl, TextBox leftControl, TextBox rightControl, Key keyPressed ) : void
ValidateAndSetHour ( string text ) : int
ValidateAndSetMinute ( string text ) : int
ValidateAndSetSeconds ( string text ) : int

Method Details

IncrementDecrementNumber() public méthode

public IncrementDecrementNumber ( string num, int minValue, int maxVal, bool increment ) : int
num string
minValue int
maxVal int
increment bool
Résultat int

OnApplyTemplate() public méthode

override to hook to the Control template elements
public OnApplyTemplate ( ) : void
Résultat void

TimePicker() public méthode

Default constructor
public TimePicker ( ) : System
Résultat System

ValidateNumber() public static méthode

public static ValidateNumber ( int newNum, int minValue, int maxValue ) : int
newNum int
minValue int
maxValue int
Résultat int

ValidateNumber() public méthode

public ValidateNumber ( string newNum, int minValue, int maxValue ) : int
newNum string
minValue int
maxValue int
Résultat int

Property Details

MaxTimeProperty public_oe static_oe property

Gets or sets the maximum time that can be selected
public static DependencyProperty,System.Windows MaxTimeProperty
Résultat System.Windows.DependencyProperty

MinTimeProperty public_oe static_oe property

Gets or sets the minimum time selected
public static DependencyProperty,System.Windows MinTimeProperty
Résultat System.Windows.DependencyProperty

SelectedHourProperty public_oe static_oe property

public static DependencyProperty,System.Windows SelectedHourProperty
Résultat System.Windows.DependencyProperty

SelectedMinuteProperty public_oe static_oe property

Backing store for the selected minsutes
public static DependencyProperty,System.Windows SelectedMinuteProperty
Résultat System.Windows.DependencyProperty

SelectedSecondProperty public_oe static_oe property

Backing store for the selected second
public static DependencyProperty,System.Windows SelectedSecondProperty
Résultat System.Windows.DependencyProperty

SelectedTimeChangedEvent public_oe static_oe property

public static RoutedEvent,System.Windows SelectedTimeChangedEvent
Résultat System.Windows.RoutedEvent

SelectedTimeProperty public_oe static_oe property

Backing store for the selected timestamp
public static DependencyProperty,System.Windows SelectedTimeProperty
Résultat System.Windows.DependencyProperty