Class TimePicker
Represents a control that allows the user to select a time.
Inheritance
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public class TimePicker : INTERNAL_DateTimePickerBase
Constructors
| Improve this Doc View SourceTimePicker()
Declaration
public TimePicker()
Fields
| Improve this Doc View SourceFormatProperty
Identifies the Format dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty FormatProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MaximumProperty
Identifies the Maximum dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty MaximumProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MinimumProperty
Identifies the Minimum dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty MinimumProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PopupButtonModeProperty
Identifies the PopupButtonMode dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty PopupButtonModeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PopupMinutesIntervalProperty
Identifies the PopupMinutesInterval dependency property.
Declaration
public static readonly DependencyProperty PopupMinutesIntervalProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PopupProperty
Identifies the Popup dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty PopupProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PopupTemplateProperty
Identifies the PopupTemplate dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty PopupTemplateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PopupTimeSelectionModeProperty
Identifies the PopupTimeSelectionMode dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty PopupTimeSelectionModeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ValueProperty
Identifies the dependency property.
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceFormat
Gets or sets the Format used by the control. From XAML Use either "Short", "Long" or a custom format. Custom formats can only contain "H", "h", "m", "s" or "t". For example: use 'hh:mm:ss' is used to format time as "13:45:30".
Declaration
[NotImplemented]
public ITimeFormat Format { get; set; }
Property Value
Type | Description |
---|---|
ITimeFormat |
Maximum
Gets or sets the maximum time considered valid by the control.
Declaration
[NotImplemented]
public DateTime? Maximum { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Remarks
Setting the Maximum property is applicable for the following features: Selecting a value through a popup, Parsing a new value from the textbox, spinning a new value and programmatically specifying a value.
Minimum
Gets or sets the minimum time considered valid by the control.
Declaration
[NotImplemented]
public DateTime? Minimum { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Remarks
Setting the minimum property is applicable for the following features: Selecting a value through a popup, Parsing a new value from the textbox, spinning a new value and programmatically specifying a value.
Popup
Gets or sets the TimePickerPopup that will be shown to the user by the TimePicker control. This property may not be styled. To style a TimePicker with a Popup, please use the PopupTemplate property. When both PopupTemplate and Popup are set, Popup will be used.
Declaration
[NotImplemented]
public TimePickerPopup Popup { get; set; }
Property Value
Type | Description |
---|---|
TimePickerPopup |
PopupButtonMode
Gets or sets the button event that causes the popup portion of the Picker control to open.
Declaration
[NotImplemented]
public ClickMode PopupButtonMode { get; set; }
Property Value
Type | Description |
---|---|
ClickMode |
PopupMinutesInterval
Gets or sets the minutes interval between time values allowed by the TimePickerPopup.
Declaration
public int PopupMinutesInterval { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
PopupTemplate
Gets or sets the template used as Popup. A Popup can also be set directly on the Popup property. When both PopupTemplate and Popup are set, Popup will be used.
Declaration
[NotImplemented]
public TimePickerPopupTemplate PopupTemplate { get; set; }
Property Value
Type | Description |
---|---|
TimePickerPopupTemplate |
PopupTimeSelectionMode
Gets or sets the whether the TimePickerPopup supports selecting designators and/or seconds.
Declaration
[NotImplemented]
public PopupTimeSelectionMode PopupTimeSelectionMode { get; set; }
Property Value
Type | Description |
---|---|
PopupTimeSelectionMode |
Value
Gets or sets the currently selected date.
Declaration
public DateTime? Value { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Methods
| Improve this Doc View SourceGenerateCalendarOrClock()
Declaration
protected override INTERNAL_CalendarOrClockBase GenerateCalendarOrClock()
Returns
Type | Description |
---|---|
INTERNAL_CalendarOrClockBase |
Overrides
| Improve this Doc View SourceOnMaximumChanged(Nullable<DateTime>, Nullable<DateTime>)
Called when the Maximum property value has changed.
Declaration
[NotImplemented]
protected virtual void OnMaximumChanged(DateTime? oldValue, DateTime? newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTime> | oldValue | Old value of the Maximum property. |
System.Nullable<System.DateTime> | newValue | New value of the Maximum property. |
OnMinimumChanged(Nullable<DateTime>, Nullable<DateTime>)
Called when the Minimum property value has changed.
Declaration
[NotImplemented]
protected virtual void OnMinimumChanged(DateTime? oldValue, DateTime? newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTime> | oldValue | Old value of the Minimum property. |
System.Nullable<System.DateTime> | newValue | New value of the Minimum property. |
OnSelectionChanged(Nullable<DateTime>)
Declaration
protected override void OnSelectionChanged(DateTime? newSelectedDate)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTime> | newSelectedDate |
Overrides
| Improve this Doc View SourceSetTextFromDate(Nullable<DateTime>)
Declaration
protected override string SetTextFromDate(DateTime? newDate)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTime> | newDate |
Returns
Type | Description |
---|---|
System.String |
Overrides
Events
| Improve this Doc View SourceValueChanged
Occurs when Value property has changed.
Declaration
[NotImplemented]
public event RoutedPropertyChangedEventHandler<DateTime?> ValueChanged
Event Type
Type | Description |
---|---|
RoutedPropertyChangedEventHandler<System.Nullable<System.DateTime>> |