Show / Hide Table of Contents

Class TimePickerPopup

Base class for a control that can be used as the popup portion in a TimePicker.

Inheritance
System.Object
DependencyObject
UIElement
FrameworkElement
Control
TimePickerPopup
ListTimePickerPopup
RangeTimePickerPopup
Inherited Members
Control.EnableBaseControlHandlingOfVisualStates
Control.ManageIsEnabled(Boolean)
Control.Background
Control.BackgroundProperty
Control.BorderBrush
Control.BorderBrushProperty
Control.BorderThickness
Control.BorderThicknessProperty
Control.FontWeight
Control.FontWeightProperty
Control.FontStyle
Control.FontStyleProperty
Control.Foreground
Control.ForegroundProperty
Control.FontFamily
Control.FontFamilyProperty
Control.FontSize
Control.FontSizeProperty
Control.TextDecorations
Control.TextDecorationsProperty
Control.Padding
Control.PaddingProperty
Control.HorizontalContentAlignment
Control.HorizontalContentAlignmentProperty
Control.VerticalContentAlignment
Control.VerticalContentAlignmentProperty
Control.TabIndex
Control.TabIndexProperty
Control.IsTabStop
Control.IsTabStopProperty
Control.TabNavigation
Control.TabNavigationProperty
Control.Template
Control.TemplateProperty
Control.ApplyTemplate()
Control.GetTemplateChild(String)
Control.Focus()
Control.HandlesScrolling
Control.OnGotFocus(RoutedEventArgs)
Control.OnLostFocus(RoutedEventArgs)
Control.CreateDomElement(Object, Object)
Control.CharacterSpacingProperty
Control.CharacterSpacing
Control.FontStretchProperty
Control.FontStretch
Control.OnDrop(DragEventArgs)
Control.OnDragEnter(DragEventArgs)
Control.OnDragLeave(DragEventArgs)
Control.OnTextInputUpdate(TextCompositionEventArgs)
Control.MeasureOverride(Size)
Control.ArrangeOverride(Size)
FrameworkElement.LayoutUpdated
FrameworkElement.SizeChanged
FrameworkElement.ResourceLookupMode
FrameworkElement.StyleProperty
FrameworkElement.Style
FrameworkElement.DefaultStyleKeyProperty
FrameworkElement.DefaultStyleKey
FrameworkElement.OverridesDefaultStyleProperty
FrameworkElement.OverridesDefaultStyle
FrameworkElement.OnVisualParentChanged(DependencyObject)
FrameworkElement.VisualChildrenCount
FrameworkElement.GetVisualChild(Int32)
FrameworkElement.Parent
FrameworkElement.AddLogicalChild(Object)
FrameworkElement.RemoveLogicalChild(Object)
FrameworkElement.LogicalChildren
FrameworkElement.TemplatedParent
FrameworkElement.Resources
FrameworkElement.IsLoaded
FrameworkElement.SetBinding(DependencyProperty, BindingBase)
FrameworkElement.SetBinding(DependencyProperty, Binding)
FrameworkElement.GetBindingExpression(DependencyProperty)
FrameworkElement.Cursor
FrameworkElement.CursorProperty
FrameworkElement.FindName(String)
FrameworkElement.Name
FrameworkElement.NameProperty
FrameworkElement.DataContext
FrameworkElement.DataContextProperty
FrameworkElement.DataContextChanged
FrameworkElement.Triggers
FrameworkElement.FlowDirectionProperty
FrameworkElement.FlowDirection
FrameworkElement.LanguageProperty
FrameworkElement.Language
FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs)
FrameworkElement.Tag
FrameworkElement.TagProperty
FrameworkElement.LoadedEvent
FrameworkElement.Loaded
FrameworkElement.Unloaded
FrameworkElement.BindingValidationError
FrameworkElement.ContextMenuProperty
FrameworkElement.ContextMenu
FrameworkElement.ContextMenuOpening
FrameworkElement.ToolTipProperty
FrameworkElement.ToolTip
FrameworkElement.INTERNAL_OnDetachedFromVisualTree()
FrameworkElement.INTERNAL_OnAttachedToVisualTree()
FrameworkElement.Height
FrameworkElement.HeightProperty
FrameworkElement.Width
FrameworkElement.WidthProperty
FrameworkElement.HorizontalAlignment
FrameworkElement.HorizontalAlignmentProperty
FrameworkElement.VerticalAlignment
FrameworkElement.VerticalAlignmentProperty
FrameworkElement.Margin
FrameworkElement.MarginProperty
FrameworkElement.MinHeight
FrameworkElement.MinHeightProperty
FrameworkElement.MinWidth
FrameworkElement.MinWidthProperty
FrameworkElement.MaxHeight
FrameworkElement.MaxHeightProperty
FrameworkElement.MaxWidth
FrameworkElement.MaxWidthProperty
FrameworkElement.ActualWidthProperty
FrameworkElement.ActualWidth
FrameworkElement.ActualHeightProperty
FrameworkElement.ActualHeight
UIElement.TransformToVisual(UIElement)
UIElement.RenderSize
UIElement.DesiredSize
UIElement.InvalidateMeasure()
UIElement.InvalidateArrange()
UIElement.Measure(Size)
UIElement.Arrange(Rect)
UIElement.UpdateLayout()
UIElement.DragEnter
UIElement.DragLeave
UIElement.Drop
UIElement.DragOver
UIElement.CacheMode
UIElement.CacheModeProperty
UIElement.Projection
UIElement.ProjectionProperty
UIElement.VisualParent
UIElement.AddVisualChild(UIElement)
UIElement.RemoveVisualChild(UIElement)
UIElement.OnVisualChildrenChanged(DependencyObject, DependencyObject)
UIElement.XamlSourcePath
UIElement.ClipToBounds
UIElement.ClipToBoundsProperty
UIElement.ClipProperty
UIElement.Clip
UIElement.IsEnabledProperty
UIElement.IsEnabled
UIElement.IsEnabledChanged
UIElement.EffectProperty
UIElement.Effect
UIElement.RenderTransformProperty
UIElement.RenderTransform
UIElement.RenderTransformOriginProperty
UIElement.RenderTransformOrigin
UIElement.UseLayoutRounding
UIElement.UseLayoutRoundingProperty
UIElement.Visibility
UIElement.VisibilityProperty
UIElement.IsVisibleProperty
UIElement.IsVisible
UIElement.IsVisibleChanged
UIElement.OpacityProperty
UIElement.Opacity
UIElement.OpacityMaskProperty
UIElement.OpacityMask
UIElement.IsHitTestVisible
UIElement.IsHitTestVisibleProperty
UIElement.AllowDrop
UIElement.AllowDropProperty
UIElement.CaptureMouse()
UIElement.IsMouseCaptured
UIElement.ReleaseMouseCapture()
UIElement.AllowScrollOnTouchMove
UIElement.AllowScrollOnTouchMoveProperty
UIElement.AddHandler(RoutedEvent, Delegate, Boolean)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.OnMouseMove(MouseEventArgs)
UIElement.MouseLeftButtonDownEvent
UIElement.MouseLeftButtonDown
UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)
UIElement.MouseRightButtonDownEvent
UIElement.MouseRightButtonDown
UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.MouseLeftButtonUpEvent
UIElement.MouseLeftButtonUp
UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.TextInputStartEvent
UIElement.TextInputStart
UIElement.OnTextInputStart(TextCompositionEventArgs)
UIElement.TextInputEvent
UIElement.TextInput
UIElement.OnTextInput(TextCompositionEventArgs)
UIElement.TextInputUpdateEvent
UIElement.TextInputUpdate
UIElement.TappedEvent
UIElement.Tapped
UIElement.OnTapped(TappedRoutedEventArgs)
UIElement.MouseRightButtonUpEvent
UIElement.MouseRightButtonUp
UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.OnKeyDown(KeyEventArgs)
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.OnKeyUp(KeyEventArgs)
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.LostMouseCapture
UIElement.OnLostMouseCapture(MouseEventArgs)
UIElement.INTERNAL_AttachToDomEvents()
UIElement.INTERNAL_DetachFromDomEvents()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Input.Toolkit.dll
Syntax
public abstract class TimePickerPopup : Control, IControl, IFrameworkElement, IUIElement, IDependencyObject

Constructors

| Improve this Doc View Source

TimePickerPopup()

Initializes a new instance of the TimePickerPopup class.

Declaration
protected TimePickerPopup()

Fields

| Improve this Doc View Source

CultureProperty

Identifies the Culture dependency property.

Declaration
public static readonly DependencyProperty CultureProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

FormatProperty

Identifies the Format dependency property.

Declaration
public static readonly DependencyProperty FormatProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

MaximumProperty

Identifies the Maximum dependency property.

Declaration
public static readonly DependencyProperty MaximumProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

MinimumProperty

Identifies the Minimum dependency property.

Declaration
public static readonly DependencyProperty MinimumProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

PopupMinutesIntervalProperty

Identifies the PopupMinutesInterval dependency property.

Declaration
public static readonly DependencyProperty PopupMinutesIntervalProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

PopupSecondsIntervalProperty

Identifies the PopupSecondsInterval dependency property.

Declaration
public static readonly DependencyProperty PopupSecondsIntervalProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

PopupTimeSelectionModeProperty

Identifies the PopupTimeSelectionMode dependency property.

Declaration
public static readonly DependencyProperty PopupTimeSelectionModeProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

TimeGlobalizationInfoProperty

Identifies the TimeGlobalizationInfo dependency property.

Declaration
public static readonly DependencyProperty TimeGlobalizationInfoProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ValueProperty

Identifies the Value dependency property.

Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

ActualCulture

Gets the actual culture used by the control for formatting and parsing.

Declaration
public CultureInfo ActualCulture { get; }
Property Value
Type Description
System.Globalization.CultureInfo

The actual culture.

| Improve this Doc View Source

ActualFormat

Gets the actual format that will be used to display Time in the TimePickerPopup. If no format is specified, ShortTimeFormat is used.

Declaration
public ITimeFormat ActualFormat { get; }
Property Value
Type Description
ITimeFormat

The actual display format.

| Improve this Doc View Source

ActualTimeGlobalizationInfo

Gets the actual TimeGlobalizationInfo used by the control.

Declaration
public TimeGlobalizationInfo ActualTimeGlobalizationInfo { get; }
Property Value
Type Description
TimeGlobalizationInfo
Remarks

If TimeGlobalizationInfo is not set, will return default TimeGlobalizationInfo instance.

| Improve this Doc View Source

Culture

Gets or sets the culture that will be used by the control for time formatting.

Declaration
public CultureInfo Culture { get; set; }
Property Value
Type Description
System.Globalization.CultureInfo
| Improve this Doc View Source

Format

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
[TypeConverter(typeof(TimeFormatConverter))]
public ITimeFormat Format { get; set; }
Property Value
Type Description
ITimeFormat
| Improve this Doc View Source

Maximum

Gets or sets the Maximum time considered valid by the control.

Declaration
[TypeConverter(typeof(TimeTypeConverter))]
public DateTime? Maximum { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>
Remarks

Setting the Maximum property will be used to prevent users from choosing values out of range in the TimePickerPopup.

| Improve this Doc View Source

Minimum

Gets or sets the Minimum time considered valid by the control.

Declaration
[TypeConverter(typeof(TimeTypeConverter))]
public DateTime? Minimum { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>
Remarks

Setting the Minimum property will be used to prevent users from choosing values out of range in the TimePickerPopup.

| Improve this Doc View Source

PopupMinutesInterval

Gets or sets the interval of minutes that can be picked in a popup.

Declaration
public int PopupMinutesInterval { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

PopupSecondsInterval

Gets or sets the interval of seconds that can be picked in a popup.

Declaration
public int PopupSecondsInterval { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

PopupTimeSelectionMode

Gets or sets the whether the TimePickerPopup supports selecting designators and/or seconds.

Declaration
public PopupTimeSelectionMode PopupTimeSelectionMode { get; set; }
Property Value
Type Description
PopupTimeSelectionMode
| Improve this Doc View Source

TimeGlobalizationInfo

Gets or sets the strategy object that determines how the control interacts with DateTime and CultureInfo.

Declaration
public TimeGlobalizationInfo TimeGlobalizationInfo { get; set; }
Property Value
Type Description
TimeGlobalizationInfo
| Improve this Doc View Source

Value

Gets or sets the currently selected time.

Declaration
[TypeConverter(typeof(TimeTypeConverter))]
public virtual DateTime? Value { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

Methods

| Improve this Doc View Source

CreateAutomationPeer()

Creates the automation peer.

Declaration
protected abstract TimePickerPopupAutomationPeer CreateAutomationPeer()
Returns
Type Description
TimePickerPopupAutomationPeer

An AutomationPeer for this instance.

| Improve this Doc View Source

DoCancel()

Raises the Cancel event.

Declaration
protected void DoCancel()
| Improve this Doc View Source

DoCommit()

Raises the Commit event.

Declaration
protected void DoCommit()
| Improve this Doc View Source

OnApplyTemplate()

Builds the visual tree for the TimePickerPopup control when a new template is applied.

Declaration
public override void OnApplyTemplate()
Overrides
Control.OnApplyTemplate()
| Improve this Doc View Source

OnClosed()

Called when the TimePicker control has closed this popup.

Declaration
public virtual void OnClosed()
| Improve this Doc View Source

OnCreateAutomationPeer()

Returns an AutomationPeer for use by the Silverlight automation infrastructure.

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type Description
AutomationPeer

An AutomationPeer for the Popup object.

Overrides
UIElement.OnCreateAutomationPeer()
| Improve this Doc View Source

OnCultureChanged(CultureInfo, CultureInfo)

Called when the culture changed.

Declaration
protected virtual void OnCultureChanged(CultureInfo oldValue, CultureInfo newValue)
Parameters
Type Name Description
System.Globalization.CultureInfo oldValue

The old value.

System.Globalization.CultureInfo newValue

The new value.

| Improve this Doc View Source

OnFormatChanged(ITimeFormat, ITimeFormat)

Called when display format changed.

Declaration
protected virtual void OnFormatChanged(ITimeFormat oldValue, ITimeFormat newValue)
Parameters
Type Name Description
ITimeFormat oldValue

The old format.

ITimeFormat newValue

The new format.

| Improve this Doc View Source

OnMaximumChanged(Nullable<DateTime>, Nullable<DateTime>)

Called when the Maximum property value has changed.

Declaration
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.

| Improve this Doc View Source

OnMinimumChanged(Nullable<DateTime>, Nullable<DateTime>)

Called when the Minimum property value has changed.

Declaration
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.

| Improve this Doc View Source

OnOpened()

Called when the TimePicker control has opened this popup.

Declaration
public virtual void OnOpened()
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.

| Improve this Doc View Source

OnPopupMinutesIntervalChanged(Int32, Int32)

Called when the popup minutes interval changed.

Declaration
protected virtual void OnPopupMinutesIntervalChanged(int oldValue, int newValue)
Parameters
Type Name Description
System.Int32 oldValue

The old value.

System.Int32 newValue

The new value.

| Improve this Doc View Source

OnPopupSecondsIntervalChanged(Int32, Int32)

Called when the popup seconds interval changed.

Declaration
protected virtual void OnPopupSecondsIntervalChanged(int oldValue, int newValue)
Parameters
Type Name Description
System.Int32 oldValue

The old value.

System.Int32 newValue

The new value.

| Improve this Doc View Source

OnPopupTimeSelectionModeChanged(PopupTimeSelectionMode, PopupTimeSelectionMode)

Called when the time selection mode is changed.

Declaration
protected virtual void OnPopupTimeSelectionModeChanged(PopupTimeSelectionMode oldValue, PopupTimeSelectionMode newValue)
Parameters
Type Name Description
PopupTimeSelectionMode oldValue

The old value.

PopupTimeSelectionMode newValue

The new value.

| Improve this Doc View Source

OnTimeGlobalizationInfoChanged(TimeGlobalizationInfo, TimeGlobalizationInfo)

Called when the time globalization info changed.

Declaration
protected virtual void OnTimeGlobalizationInfoChanged(TimeGlobalizationInfo oldValue, TimeGlobalizationInfo newValue)
Parameters
Type Name Description
TimeGlobalizationInfo oldValue

The old value.

TimeGlobalizationInfo newValue

The new value.

| Improve this Doc View Source

OnValueChanged(RoutedPropertyChangedEventArgs<Nullable<DateTime>>)

Raises the ValueChanged event when Value property has changed.

Declaration
protected virtual void OnValueChanged(RoutedPropertyChangedEventArgs<DateTime?> e)
Parameters
Type Name Description
RoutedPropertyChangedEventArgs<System.Nullable<System.DateTime>> e

Event args.

| Improve this Doc View Source

OnValueChanging(RoutedPropertyChangingEventArgs<Nullable<DateTime>>)

Raises the ValueChanging event when Value property is changing.

Declaration
protected virtual void OnValueChanging(RoutedPropertyChangingEventArgs<DateTime?> e)
Parameters
Type Name Description
RoutedPropertyChangingEventArgs<System.Nullable<System.DateTime>> e

Event args.

Events

| Improve this Doc View Source

Cancel

Occurs when a selection has been canceled.

Declaration
public event RoutedEventHandler Cancel
Event Type
Type Description
RoutedEventHandler
| Improve this Doc View Source

Commit

Occurs when a selected item is committed.

Declaration
public event RoutedEventHandler Commit
Event Type
Type Description
RoutedEventHandler
| Improve this Doc View Source

ValueChanged

Occurs when Value property has changed.

Declaration
public event RoutedPropertyChangedEventHandler<DateTime?> ValueChanged
Event Type
Type Description
RoutedPropertyChangedEventHandler<System.Nullable<System.DateTime>>
| Improve this Doc View Source

ValueChanging

Occurs when Value property is changing.

Declaration
public event RoutedPropertyChangingEventHandler<DateTime?> ValueChanging
Event Type
Type Description
RoutedPropertyChangingEventHandler<System.Nullable<System.DateTime>>

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
UIElementExtendedRoutedEventExtensions.AddHandler(UIElement, ExtendedRoutedEvent, Delegate, Boolean)
UIElementExtendedRoutedEventExtensions.RemoveHandler(UIElement, ExtendedRoutedEvent, Delegate)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
VisualTreeExtensions.GetBoundsRelativeTo(FrameworkElement, UIElement)
VisualTreeExtensions.InvokeOnLayoutUpdated(FrameworkElement, Action)
  • Improve this Doc
  • View Source