Class RangeTimePickerPopup
Represents a time picker popup that allows choosing time through 3 sliders: Hours, Minutes and seconds.
Inheritance
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Input.Toolkit.dll
Syntax
[TemplatePart(Name = "Commit", Type = typeof(ButtonBase))]
[TemplatePart(Name = "Cancel", Type = typeof(ButtonBase))]
[TemplatePart(Name = "HoursPanel", Type = typeof(Panel))]
[TemplatePart(Name = "MinutesPanel", Type = typeof(Panel))]
[TemplatePart(Name = "SecondsPanel", Type = typeof(Panel))]
[TemplatePart(Name = "HoursSlider", Type = typeof(RangeBase))]
[TemplatePart(Name = "MinutesSlider", Type = typeof(RangeBase))]
[TemplatePart(Name = "SecondsSlider", Type = typeof(RangeBase))]
[StyleTypedProperty(Property = "SliderStyle", StyleTargetType = typeof(RangeBase))]
[StyleTypedProperty(Property = "TimeButtonStyle", StyleTargetType = typeof(Button))]
public class RangeTimePickerPopup : TimePickerPopup, IControl, IFrameworkElement, IUIElement, IDependencyObject
Constructors
| Improve this Doc View SourceRangeTimePickerPopup()
Initializes a new instance of the RangeTimePickerPopup class.
Declaration
public RangeTimePickerPopup()
Fields
| Improve this Doc View SourceSliderStyleProperty
Identifies the SliderStyle dependency property.
Declaration
public static readonly DependencyProperty SliderStyleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TimeButtonStyleProperty
Identifies the TimeButtonStyle dependency property.
Declaration
public static readonly DependencyProperty TimeButtonStyleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceSliderStyle
Gets or sets the Style applied to the sliders in the RangeTimePickerPopup control.
Declaration
public Style SliderStyle { get; set; }
Property Value
Type | Description |
---|---|
Style |
TimeButtonStyle
Gets or sets the Style applied to the buttons that represent hours, minutes and seconds.
Declaration
public Style TimeButtonStyle { get; set; }
Property Value
Type | Description |
---|---|
Style |
Methods
| Improve this Doc View SourceCreateAutomationPeer()
Creates the automation peer.
Declaration
protected override TimePickerPopupAutomationPeer CreateAutomationPeer()
Returns
Type | Description |
---|---|
TimePickerPopupAutomationPeer | The RangeTimePickerPopupAutomationPeer for this instance. |
Overrides
| Improve this Doc View SourceLayoutLabels()
Arranges the time labels on the RangeTimePickerPopup control.
Declaration
protected virtual void LayoutLabels()
Remarks
Uses a canvas to layout labels vertically.
OnApplyTemplate()
Builds the visual tree for the RangeTimePickerPopup control when a new template is applied.
Declaration
public override void OnApplyTemplate()
Overrides
| Improve this Doc View SourceOnClosed()
Called when the TimePicker control has closed this popup.
Declaration
public override void OnClosed()
Overrides
| Improve this Doc View SourceOnOpened()
Called when the TimePicker control has opened this 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.
OnValueChanged(RoutedPropertyChangedEventArgs<Nullable<DateTime>>)
Raises the ValueChanged event when Value property has changed.
Declaration
protected override void OnValueChanged(RoutedPropertyChangedEventArgs<DateTime?> e)
Parameters
Type | Name | Description |
---|---|---|
RoutedPropertyChangedEventArgs<System.Nullable<System.DateTime>> | e | Event args. |