C# Class AC.AvalonControlsLibrary.Controls.TimePicker

Inheritance: System.Windows.Controls.Control
Afficher le fichier Open project: kienaiProject/ArtOfWords Class Usage Examples

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
OnApplyTemplate ( ) : void

override to hook to the Control template elements

TimePicker ( ) : System

Default constructor

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
ExposeAdjustCarretIndexOrMoveToNeighbour ( TextBox current, TextBox neighbour ) : void
ExposeTrimSelectedText ( TextBox textBox ) : void
ExposeTryFocusNeighbourControl ( TextBox currentControl, TextBox leftControl, TextBox rightControl, Key keyPressed ) : 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

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

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

Backing store for the selected hour
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