C# Class AC.AvalonControlsLibrary.Controls.TimePicker

Inheritance: System.Windows.Controls.Control
Mostrar archivo Open project: kienaiProject/ArtOfWords Class Usage Examples

Public Properties

Property 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

Public Methods

Method Description
OnApplyTemplate ( ) : void

override to hook to the Control template elements

TimePicker ( ) : System

Default constructor

Private Methods

Method 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 method

override to hook to the Control template elements
public OnApplyTemplate ( ) : void
return void

TimePicker() public method

Default constructor
public TimePicker ( ) : System
return 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
return System.Windows.DependencyProperty

MinTimeProperty public_oe static_oe property

Gets or sets the minimum time selected
public static DependencyProperty,System.Windows MinTimeProperty
return System.Windows.DependencyProperty

SelectedHourProperty public_oe static_oe property

Backing store for the selected hour
public static DependencyProperty,System.Windows SelectedHourProperty
return System.Windows.DependencyProperty

SelectedMinuteProperty public_oe static_oe property

Backing store for the selected minsutes
public static DependencyProperty,System.Windows SelectedMinuteProperty
return System.Windows.DependencyProperty

SelectedSecondProperty public_oe static_oe property

Backing store for the selected second
public static DependencyProperty,System.Windows SelectedSecondProperty
return System.Windows.DependencyProperty

SelectedTimeChangedEvent public_oe static_oe property

public static RoutedEvent,System.Windows SelectedTimeChangedEvent
return System.Windows.RoutedEvent

SelectedTimeProperty public_oe static_oe property

Backing store for the selected timestamp
public static DependencyProperty,System.Windows SelectedTimeProperty
return System.Windows.DependencyProperty