C# Class MahApps.Metro.Controls.TimePickerBase

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

Méthodes publiques

Свойство Type Description
CultureProperty System.Windows.DependencyProperty
HandVisibilityProperty DependencyProperty
IntervalOf10 IEnumerable
IntervalOf15 IEnumerable
IntervalOf5 IEnumerable
IsClockVisibleProperty DependencyProperty
IsDropDownOpenProperty DependencyProperty
IsReadOnlyProperty DependencyProperty
PickerVisibilityProperty DependencyProperty
SelectedTimeChangedEvent RoutedEvent
SelectedTimeProperty DependencyProperty
SourceHoursProperty DependencyProperty
SourceMinutesProperty DependencyProperty
SourceSecondsProperty DependencyProperty

Protected Properties

Свойство Type Description
_textBox DatePickerTextBox

Private Properties

Свойство Type Description
CoerceSelectedTime object
CoerceSource60 object
CoerceSourceHours object
CreateValueList IList
GetAmPmOffset int
InternalOnRangeBaseValueChanged void
InternalOnTextBoxLostFocus void
IsValueSelected bool
OnButtonClicked void
OnCultureChanged void
OnGotFocus void
OnHandVisibilityChanged void
OnPickerVisibilityChanged void
OnSelectedTimeChanged void
OnTextChanged void
OutsideCapturedElementHandler void
SetAmPmVisibility void
SetDefaultTimeOfDayValue void
SetHandVisibility void
SetHourPartValues void
SetPickerVisibility void
SetVisibility void
SubscribeRangeBaseValueChanged void
TimePickerBase System
UnsubscribeRangeBaseValueChanged void

Méthodes publiques

Méthode Description
OnApplyTemplate ( ) : void

When overridden in a derived class, is invoked whenever application code or internal processes call M:System.Windows.FrameworkElement.ApplyTemplate.

Méthodes protégées

Méthode Description
ApplyBindings ( ) : void
ApplyCulture ( ) : void
GetBinding ( DependencyProperty property ) : Binding
GetSelectedTimeFromGUI ( ) : TimeSpan?
GetValueForTextBox ( ) : string
OnIsKeyboardFocusWithinChanged ( DependencyPropertyChangedEventArgs e ) : void
OnRangeBaseValueChanged ( object sender, SelectionChangedEventArgs e ) : void
OnSelectedTimeChanged ( TimePickerBaseSelectionChangedEventArgs e ) : void
OnTextBoxLostFocus ( object sender, RoutedEventArgs e ) : void
SetDefaultTimeOfDayValues ( ) : void
SubscribeEvents ( ) : void
UnSubscribeEvents ( ) : void
WriteValueToTextBox ( ) : void

Private Methods

Méthode Description
CoerceSelectedTime ( DependencyObject d, object basevalue ) : object
CoerceSource60 ( DependencyObject d, object basevalue ) : object
CoerceSourceHours ( DependencyObject d, object basevalue ) : object
CreateValueList ( int interval ) : IList
GetAmPmOffset ( int currentHour ) : int

Gets the offset from the selected currentHour to use it in TimeSpan as hour parameter.

InternalOnRangeBaseValueChanged ( object sender, SelectionChangedEventArgs e ) : void
InternalOnTextBoxLostFocus ( object sender, RoutedEventArgs e ) : void
IsValueSelected ( Selector selector ) : bool
OnButtonClicked ( object sender, RoutedEventArgs e ) : void
OnCultureChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnGotFocus ( object sender, RoutedEventArgs e ) : void
OnHandVisibilityChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnPickerVisibilityChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnSelectedTimeChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnTextChanged ( object sender, TextChangedEventArgs e ) : void
OutsideCapturedElementHandler ( object sender, MouseButtonEventArgs e ) : void
SetAmPmVisibility ( ) : void
SetDefaultTimeOfDayValue ( Selector selector ) : void
SetHandVisibility ( TimePartVisibility visibility ) : void
SetHourPartValues ( TimeSpan timeOfDay ) : void
SetPickerVisibility ( TimePartVisibility visibility ) : void
SetVisibility ( UIElement partHours, UIElement partMinutes, UIElement partSeconds, TimePartVisibility visibility ) : void
SubscribeRangeBaseValueChanged ( ) : void
TimePickerBase ( ) : System
UnsubscribeRangeBaseValueChanged ( ) : void

Method Details

ApplyBindings() protected méthode

protected ApplyBindings ( ) : void
Résultat void

ApplyCulture() protected méthode

protected ApplyCulture ( ) : void
Résultat void

GetBinding() protected méthode

protected GetBinding ( DependencyProperty property ) : Binding
property DependencyProperty
Résultat Binding

GetSelectedTimeFromGUI() protected méthode

protected GetSelectedTimeFromGUI ( ) : TimeSpan?
Résultat TimeSpan?

GetValueForTextBox() protected méthode

protected GetValueForTextBox ( ) : string
Résultat string

OnApplyTemplate() public méthode

When overridden in a derived class, is invoked whenever application code or internal processes call M:System.Windows.FrameworkElement.ApplyTemplate.
public OnApplyTemplate ( ) : void
Résultat void

OnIsKeyboardFocusWithinChanged() protected méthode

protected OnIsKeyboardFocusWithinChanged ( DependencyPropertyChangedEventArgs e ) : void
e DependencyPropertyChangedEventArgs
Résultat void

OnRangeBaseValueChanged() protected méthode

protected OnRangeBaseValueChanged ( object sender, SelectionChangedEventArgs e ) : void
sender object
e SelectionChangedEventArgs
Résultat void

OnSelectedTimeChanged() protected méthode

protected OnSelectedTimeChanged ( TimePickerBaseSelectionChangedEventArgs e ) : void
e TimePickerBaseSelectionChangedEventArgs
Résultat void

OnTextBoxLostFocus() protected méthode

protected OnTextBoxLostFocus ( object sender, RoutedEventArgs e ) : void
sender object
e RoutedEventArgs
Résultat void

SetDefaultTimeOfDayValues() protected méthode

protected SetDefaultTimeOfDayValues ( ) : void
Résultat void

SubscribeEvents() protected méthode

protected SubscribeEvents ( ) : void
Résultat void

UnSubscribeEvents() protected méthode

protected UnSubscribeEvents ( ) : void
Résultat void

WriteValueToTextBox() protected méthode

protected WriteValueToTextBox ( ) : void
Résultat void

Property Details

CultureProperty public_oe static_oe property

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

HandVisibilityProperty public_oe static_oe property

public static DependencyProperty HandVisibilityProperty
Résultat DependencyProperty

IntervalOf10 public_oe static_oe property

This list contains values from 0 to 50 with an interval of 10. It can be used to bind to SourceMinutes and SourceSeconds.
public static IEnumerable IntervalOf10
Résultat IEnumerable

IntervalOf15 public_oe static_oe property

This list contains values from 0 to 45 with an interval of 15. It can be used to bind to SourceMinutes and SourceSeconds.
public static IEnumerable IntervalOf15
Résultat IEnumerable

IntervalOf5 public_oe static_oe property

This list contains values from 0 to 55 with an interval of 5. It can be used to bind to SourceMinutes and SourceSeconds.
public static IEnumerable IntervalOf5
Résultat IEnumerable

IsClockVisibleProperty public_oe static_oe property

public static DependencyProperty IsClockVisibleProperty
Résultat DependencyProperty

IsDropDownOpenProperty public_oe static_oe property

public static DependencyProperty IsDropDownOpenProperty
Résultat DependencyProperty

IsReadOnlyProperty public_oe static_oe property

public static DependencyProperty IsReadOnlyProperty
Résultat DependencyProperty

PickerVisibilityProperty public_oe static_oe property

public static DependencyProperty PickerVisibilityProperty
Résultat DependencyProperty

SelectedTimeChangedEvent public_oe static_oe property

public static RoutedEvent SelectedTimeChangedEvent
Résultat RoutedEvent

SelectedTimeProperty public_oe static_oe property

public static DependencyProperty SelectedTimeProperty
Résultat DependencyProperty

SourceHoursProperty public_oe static_oe property

public static DependencyProperty SourceHoursProperty
Résultat DependencyProperty

SourceMinutesProperty public_oe static_oe property

public static DependencyProperty SourceMinutesProperty
Résultat DependencyProperty

SourceSecondsProperty public_oe static_oe property

public static DependencyProperty SourceSecondsProperty
Résultat DependencyProperty

_textBox protected_oe property

protected DatePickerTextBox _textBox
Résultat DatePickerTextBox