TimePicker Class

Summary

Represents a control that allows the user to select a time.
Namespace
MahApps.Metro.Controls
Base Types
graph BT Type-->Base0["TimePickerBase"] click Base0 "/mahapps.metro.docs.wyam/api/MahApps.Metro.Controls/TimePickerBase" Base0-->Base1["Control"] Type["TimePicker"] class Type type-node

Syntax

public class TimePicker : TimePickerBase

Constructors

Name Summary
TimePicker()

Events

Name Type Summary
SelectedDateTimeChanged EventHandler<TimePickerBaseSelectionChangedEventArgs<DateTime?>>
Occurs when the SelectedDateTime property is changed.
Inherited from TimePickerBase

Fields

Name Constant Value Summary
_textBox
Inherited from TimePickerBase
CultureProperty
Inherited from TimePickerBase
static
HandVisibilityProperty
Inherited from TimePickerBase
static
HoursItemStringFormatProperty
Inherited from TimePickerBase
static
IntervalOf10
This list contains values from 0 to 50 with an interval of 10. It can be used to bind to SourceMinutes and SourceSeconds.
Inherited from TimePickerBase
static
IntervalOf15
This list contains values from 0 to 45 with an interval of 15. It can be used to bind to SourceMinutes and SourceSeconds.
Inherited from TimePickerBase
static
IntervalOf5
This list contains values from 0 to 55 with an interval of 5. It can be used to bind to SourceMinutes and SourceSeconds.
Inherited from TimePickerBase
static
IsClockVisibleProperty
Inherited from TimePickerBase
static
IsDatePickerVisibleProperty
Inherited from TimePickerBase
static
IsDropDownOpenProperty
Inherited from TimePickerBase
static
IsReadOnlyProperty
Inherited from TimePickerBase
static
MinutesItemStringFormatProperty
Inherited from TimePickerBase
static
PickerVisibilityProperty
Inherited from TimePickerBase
static
SecondsItemStringFormatProperty
Inherited from TimePickerBase
static
SelectedDateTimeChangedEvent
Inherited from TimePickerBase
static
SelectedDateTimeProperty
Inherited from TimePickerBase
static
SelectedTimeFormatProperty
Inherited from TimePickerBase
static
SourceHoursProperty
Inherited from TimePickerBase
static
SourceMinutesProperty
Inherited from TimePickerBase
static
SourceSecondsProperty
Inherited from TimePickerBase
static

Properties

Name Value Summary
Culture CultureInfo
Gets or sets a value indicating the culture to be used in string formatting operations.
Inherited from TimePickerBase
HandVisibility TimePartVisibility
Gets or sets a value indicating the visibility of the clock hands in the user interface (UI).
Inherited from TimePickerBase
HoursItemStringFormat string
Inherited from TimePickerBase
IsClockVisible bool
Gets or sets a value indicating whether the clock of this control is visible in the user interface (UI). This is a dependency property.
Inherited from TimePickerBase
IsDatePickerVisible bool
Gets or sets a value indicating whether the date can be selected or not. This property is read-only.
Inherited from TimePickerBase
IsDropDownOpen bool
Gets or sets a value indicating whether the drop-down for a TimePickerBase box is currently open.
Inherited from TimePickerBase
IsMilitaryTime bool
Gets a value indicating whether the System.Globalization.DateTimeFormatInfo.AMDesignator that is specified by the CultureInfo set by the Culture (FrameworkElement.Language if null) has not a value.
Inherited from TimePickerBase
IsReadOnly bool
Gets or sets a value indicating whether the contents of the TimePickerBase are not editable.
Inherited from TimePickerBase
MinutesItemStringFormat string
Inherited from TimePickerBase
PickerVisibility TimePartVisibility
Gets or sets a value indicating the visibility of the selectable date-time-parts in the user interface (UI).
Inherited from TimePickerBase
SecondsItemStringFormat string
Inherited from TimePickerBase
SelectedDateTime DateTime?
Gets or sets the currently selected date and time.
Inherited from TimePickerBase
SelectedTimeFormat TimePickerFormat
Gets or sets the format that is used to display the selected time.
Inherited from TimePickerBase
SourceHours IEnumerable<int>
Gets or sets a collection used to generate the content for selecting the hours.
Inherited from TimePickerBase
SourceMinutes IEnumerable<int>
Gets or sets a collection used to generate the content for selecting the minutes.
Inherited from TimePickerBase
SourceSeconds IEnumerable<int>
Gets or sets a collection used to generate the content for selecting the seconds.
Inherited from TimePickerBase
SpecificCultureInfo CultureInfo
Inherited from TimePickerBase

Methods

Name Value Summary
ApplyBindings() void
Inherited from TimePickerBase
ApplyCulture() void
Inherited from TimePickerBase
GetBinding(DependencyProperty) Binding
Inherited from TimePickerBase
GetSelectedTimeFromGUI() TimeSpan?
Inherited from TimePickerBase
GetValueForTextBox() string
Inherited from TimePickerBase
OnApplyTemplate() void
When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.
Inherited from TimePickerBase
OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) void
Inherited from TimePickerBase
OnRangeBaseValueChanged(object, SelectionChangedEventArgs) void
Inherited from TimePickerBase
OnSelectedTimeChanged(TimePickerBaseSelectionChangedEventArgs<DateTime?>) void
Inherited from TimePickerBase
OnTextBoxLostFocus(object, RoutedEventArgs) void
SetDefaultTimeOfDayValues() void
Inherited from TimePickerBase
SubscribeEvents() void
Inherited from TimePickerBase
UnSubscribeEvents() void
Inherited from TimePickerBase
WriteValueToTextBox() void
Inherited from TimePickerBase
WriteValueToTextBox(string) void
Inherited from TimePickerBase