Class ListTimePickerPopup
Represents a time picker popup that allows choosing time from a ListBox.
Inheritance
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Input.Toolkit.dll
Syntax
[TemplatePart(Name = "ListBox", Type = typeof(ListBox))]
[StyleTypedProperty(Property = "ListBoxStyle", StyleTargetType = typeof(ListBox))]
[StyleTypedProperty(Property = "ListBoxItemStyle", StyleTargetType = typeof(ListBoxItem))]
public class ListTimePickerPopup : TimePickerPopup, IControl, IFrameworkElement, IUIElement, IDependencyObject
Remarks
Can also be used independently.
Constructors
| Improve this Doc View SourceListTimePickerPopup()
Initializes a new instance of the List
Declaration
public ListTimePickerPopup()
Fields
| Improve this Doc View SourceListBoxItemStyleProperty
Identifies the ListBoxItemStyle dependency property.
Declaration
public static readonly DependencyProperty ListBoxItemStyleProperty
Field Value
Type | Description |
---|---|
Dependency |
ListBoxStyleProperty
Identifies the ListBoxStyle dependency property.
Declaration
public static readonly DependencyProperty ListBoxStyleProperty
Field Value
Type | Description |
---|---|
Dependency |
TimeItemsSelectionProperty
Identifies the TimeItemsSelection dependency property.
Declaration
public static readonly DependencyProperty TimeItemsSelectionProperty
Field Value
Type | Description |
---|---|
Dependency |
Properties
| Improve this Doc View SourceListBoxItemStyle
Gets or sets the Style applied to the ListBoxItems in the ListTimePickerPopup control.
Declaration
public Style ListBoxItemStyle { get; set; }
Property Value
Type | Description |
---|---|
Style |
ListBoxStyle
Gets or sets the Style applied to the ListBox portion the ListTimePickerPopup control.
Declaration
public Style ListBoxStyle { get; set; }
Property Value
Type | Description |
---|---|
Style |
TimeItemsSelection
Gets the collection of times used in the ListBox portion of the ListTimePickerPopup control.
Declaration
public ItemSelectionHelper<KeyValuePair<string, DateTime?>> TimeItemsSelection { get; }
Property Value
Type | Description |
---|---|
Item |
The time items selection. |
Methods
| Improve this Doc View SourceCreateAutomationPeer()
Creates the automation peer.
Declaration
protected override TimePickerPopupAutomationPeer CreateAutomationPeer()
Returns
Type | Description |
---|---|
Time |
The ListTimePickerPopupAutomationPeer for this instance. |
Overrides
| Improve this Doc View SourceOnApplyTemplate()
Builds the visual tree for the ListTimePickerPopup control when a new template is applied.
Declaration
public override void OnApplyTemplate()
Overrides
| Improve this Doc View SourceOnCultureChanged(CultureInfo, CultureInfo)
Called when the culture changed.
Declaration
protected override void OnCultureChanged(CultureInfo oldValue, CultureInfo newValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
oldValue | The old value. |
System. |
newValue | The new value. |
Overrides
| Improve this Doc View SourceOnFormatChanged(ITimeFormat, ITimeFormat)
Called when format changed.
Declaration
protected override void OnFormatChanged(ITimeFormat oldValue, ITimeFormat newValue)
Parameters
Type | Name | Description |
---|---|---|
ITime |
oldValue | The old format. |
ITime |
newValue | The new format. |
Overrides
| Improve this Doc View SourceOnKeyDown(KeyEventArgs)
Provides handling for the KeyDown event.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Key |
e | The data for the event. |
Overrides
| Improve this Doc View SourceOnMaximumChanged(Nullable<DateTime>, Nullable<DateTime>)
Called when the Maximum property value has changed.
Declaration
protected override void OnMaximumChanged(DateTime? oldValue, DateTime? newValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
oldValue | Old value of the Maximum property. |
System. |
newValue | New value of the Maximum property. |
Overrides
| Improve this Doc View SourceOnMinimumChanged(Nullable<DateTime>, Nullable<DateTime>)
Called when the Minimum property value has changed.
Declaration
protected override void OnMinimumChanged(DateTime? oldValue, DateTime? newValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
oldValue | Old value of the Minimum property. |
System. |
newValue | New value of the Minimum property. |
Overrides
| Improve this Doc View SourceOnOpened()
Called when TimePicker opened the popup.
Declaration
public override void OnOpened()
Overrides
Remarks
Called before the TimePicker reacts to value changes. This is done so that the Popup can 'snap' to a specific value without changing the selected value in the TimePicker.
OnPopupMinutesIntervalChanged(Int32, Int32)
Called when the popup minutes interval changed.
Declaration
protected override void OnPopupMinutesIntervalChanged(int oldValue, int newValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
oldValue | The old value. |
System. |
newValue | The new value. |
Overrides
| Improve this Doc View SourceOnPopupSecondsIntervalChanged(Int32, Int32)
Called when the popup seconds interval changed.
Declaration
protected override void OnPopupSecondsIntervalChanged(int oldValue, int newValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
oldValue | The old value. |
System. |
newValue | The new value. |
Overrides
| Improve this Doc View SourceOnPopupTimeSelectionModeChanged(PopupTimeSelectionMode, PopupTimeSelectionMode)
Called when the time selection mode is changed.
Declaration
protected override void OnPopupTimeSelectionModeChanged(PopupTimeSelectionMode oldValue, PopupTimeSelectionMode newValue)
Parameters
Type | Name | Description |
---|---|---|
Popup |
oldValue | The old value. |
Popup |
newValue | The new value. |
Overrides
| Improve this Doc View SourceOnValueChanged(RoutedPropertyChangedEventArgs<Nullable<DateTime>>)
Raises the ValueChanged event when Value property has changed.
Declaration
protected override void OnValueChanged(RoutedPropertyChangedEventArgs<DateTime?> e)
Parameters
Type | Name | Description |
---|---|---|
Routed |
e | Event args. |