C# Класс MahApps.Metro.Controls.TimePickerBase

Наследование: System.Windows.Controls.Control
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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)

Свойство Тип Описание
_textBox DatePickerTextBox

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
OnApplyTemplate ( ) : void

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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ApplyBindings() защищенный Метод

protected ApplyBindings ( ) : void
Результат void

ApplyCulture() защищенный Метод

protected ApplyCulture ( ) : void
Результат void

GetBinding() защищенный Метод

protected GetBinding ( DependencyProperty property ) : Binding
property DependencyProperty
Результат Binding

GetSelectedTimeFromGUI() защищенный Метод

protected GetSelectedTimeFromGUI ( ) : TimeSpan?
Результат TimeSpan?

GetValueForTextBox() защищенный Метод

protected GetValueForTextBox ( ) : string
Результат string

OnApplyTemplate() публичный Метод

When overridden in a derived class, is invoked whenever application code or internal processes call M:System.Windows.FrameworkElement.ApplyTemplate.
public OnApplyTemplate ( ) : void
Результат void

OnIsKeyboardFocusWithinChanged() защищенный Метод

protected OnIsKeyboardFocusWithinChanged ( DependencyPropertyChangedEventArgs e ) : void
e DependencyPropertyChangedEventArgs
Результат void

OnRangeBaseValueChanged() защищенный Метод

protected OnRangeBaseValueChanged ( object sender, SelectionChangedEventArgs e ) : void
sender object
e SelectionChangedEventArgs
Результат void

OnSelectedTimeChanged() защищенный Метод

protected OnSelectedTimeChanged ( TimePickerBaseSelectionChangedEventArgs e ) : void
e TimePickerBaseSelectionChangedEventArgs
Результат void

OnTextBoxLostFocus() защищенный Метод

protected OnTextBoxLostFocus ( object sender, RoutedEventArgs e ) : void
sender object
e RoutedEventArgs
Результат void

SetDefaultTimeOfDayValues() защищенный Метод

protected SetDefaultTimeOfDayValues ( ) : void
Результат void

SubscribeEvents() защищенный Метод

protected SubscribeEvents ( ) : void
Результат void

UnSubscribeEvents() защищенный Метод

protected UnSubscribeEvents ( ) : void
Результат void

WriteValueToTextBox() защищенный Метод

protected WriteValueToTextBox ( ) : void
Результат void

Описание свойств

CultureProperty публичное статическое свойство

public static DependencyProperty,System.Windows CultureProperty
Результат System.Windows.DependencyProperty

HandVisibilityProperty публичное статическое свойство

public static DependencyProperty HandVisibilityProperty
Результат DependencyProperty

IntervalOf10 публичное статическое свойство

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
Результат IEnumerable

IntervalOf15 публичное статическое свойство

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
Результат IEnumerable

IntervalOf5 публичное статическое свойство

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
Результат IEnumerable

IsClockVisibleProperty публичное статическое свойство

public static DependencyProperty IsClockVisibleProperty
Результат DependencyProperty

IsDropDownOpenProperty публичное статическое свойство

public static DependencyProperty IsDropDownOpenProperty
Результат DependencyProperty

IsReadOnlyProperty публичное статическое свойство

public static DependencyProperty IsReadOnlyProperty
Результат DependencyProperty

PickerVisibilityProperty публичное статическое свойство

public static DependencyProperty PickerVisibilityProperty
Результат DependencyProperty

SelectedTimeChangedEvent публичное статическое свойство

public static RoutedEvent SelectedTimeChangedEvent
Результат RoutedEvent

SelectedTimeProperty публичное статическое свойство

public static DependencyProperty SelectedTimeProperty
Результат DependencyProperty

SourceHoursProperty публичное статическое свойство

public static DependencyProperty SourceHoursProperty
Результат DependencyProperty

SourceMinutesProperty публичное статическое свойство

public static DependencyProperty SourceMinutesProperty
Результат DependencyProperty

SourceSecondsProperty публичное статическое свойство

public static DependencyProperty SourceSecondsProperty
Результат DependencyProperty

_textBox защищенное свойство

protected DatePickerTextBox _textBox
Результат DatePickerTextBox