menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfTimePicker - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfTimePicker

    Represents a control that allows the user to select a time by using a drop-down Syncfusion.UI.Xaml.Controls.Input.TimeSelector control

    Inheritance
    System.Object
    SfTimePicker
    Implements
    IDataValidator
    System.IDisposable
    Namespace: Syncfusion.UI.Xaml.Controls.Input
    Assembly: Syncfusion.SfInput.UWP.dll
    Syntax
    [ClassReference(IsReviewed = false)]
    public class SfTimePicker : Control, IDataValidator, IDisposable
    Remarks

    Constructors

    SfTimePicker()

    Initializes a new instance of the Syncfusion.UI.Xaml.Controls.Input.TimePicker class.

    Declaration
    [ClassReference(IsReviewed = false)]
    public SfTimePicker()

    Fields

    AccentBrushProperty

    Using a DependencyProperty as the backing store for AccentBrush. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty AccentBrushProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    AllowInlineEditingProperty

    Using a DependencyProperty as the backing store for CanInlineEdit. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty AllowInlineEditingProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    AllowNullProperty

    Using a DependencyProperty as the backing store for AllowNull. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty AllowNullProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    DropDownHeightProperty

    Using a DependencyProperty as the backing store for DropDownHeight. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty DropDownHeightProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    FormatStringProperty

    Using a DependencyProperty as the backing store for FormatString. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty FormatStringProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    InputScopeProperty

    Using a DependencyProperty as the backing store for InputScope. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty InputScopeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    IsDropDownOpenProperty

    Using a DependencyProperty as the backing store for IsDropDownOpen. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty IsDropDownOpenProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    MaxTimeProperty

    Declaration
    public static readonly DependencyProperty MaxTimeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    MinTimeProperty

    Declaration
    public static readonly DependencyProperty MinTimeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SelectorFormatStringProperty

    Using a DependencyProperty as the backing store for ValueFormat. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SelectorFormatStringProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SelectorItemCountProperty

    Using a DependencyProperty as the backing store for SelectorItemCount. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SelectorItemCountProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SelectorItemHeightProperty

    Using a DependencyProperty as the backing store for SelectorItemHeight. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SelectorItemHeightProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SelectorItemSpacingProperty

    Using a DependencyProperty as the backing store for SelectorItemSpacing. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SelectorItemSpacingProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SelectorItemWidthProperty

    Using a DependencyProperty as the backing store for SelectorItemWidth. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SelectorItemWidthProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SelectorStyleProperty

    Using a DependencyProperty as the backing store for SelectorStyle. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SelectorStyleProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SetValueOnLostFocusProperty

    Using a DependencyProperty as the backing store for SetValueOnLostFocus. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SetValueOnLostFocusProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    ShowDropDownButtonProperty

    Using a DependencyProperty as the backing store for ShowDropDownButton. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty ShowDropDownButtonProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    ValueProperty

    Using a DependencyProperty as the backing store for SelectedDateTime. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty ValueProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    WatermarkProperty

    Using a DependencyProperty as the backing store for Watermark. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty WatermarkProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    WatermarkTemplateProperty

    Using a DependencyProperty as the backing store for WatermarkTemplate. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty WatermarkTemplateProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    Properties

    AccentBrush

    Gets or sets the background for Syncfusion.UI.Xaml.Controls.Input.TimePicker.

    Declaration
    [ClassReference(IsReviewed = false)]
    public Brush AccentBrush { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.Brush

    The default value is null.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.TimeSelector

    AllowInlineEditing

    Gets or sets a value indicating whether AllowInlineEditing is set in Syncfusion.UI.Xaml.Controls.Input.TimePicker control.

    Declaration
    public bool AllowInlineEditing { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if set; otherwise, false.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.TimeSelector

    AllowNull

    Gets or sets the AllowNull for the SfTimePicker control.

    Declaration
    [ClassReference(IsReviewed = false)]
    public bool AllowNull { get; set; }
    Property Value
    Type
    System.Boolean

    DropDownHeight

    Gets or sets the height of the drop down for the Syncfusion.UI.Xaml.Controls.Input.TimePicker.

    Declaration
    [ClassReference(IsReviewed = false)]
    public double DropDownHeight { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is zero.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.TimePicker.DropDownWidth
    Syncfusion.UI.Xaml.Controls.Input.TimePicker.IsDropDownOpen
    Syncfusion.UI.Xaml.Controls.Input.TimeSelector

    FormatString

    Gets or sets the data that is used as a format for Syncfusion.UI.Xaml.Controls.Input.TimePicker.

    Declaration
    [ClassReference(IsReviewed = false)]
    public string FormatString { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.TimeSelector

    InputScope

    Gets or sets the input scope

    Declaration
    [ClassReference(IsReviewed = false)]
    public InputScopeNameValue InputScope { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.Input.InputScopeNameValue

    IsDropDownOpen

    Gets or sets a value indicating whether this instance is drop down open.

    Declaration
    [ClassReference(IsReviewed = false)]
    public bool IsDropDownOpen { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is drop down open; otherwise, false.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.TimePicker.DropDownWidth
    Syncfusion.UI.Xaml.Controls.Input.TimePicker.DropDownHeight

    MaxTime

    Gets or sets the Maximum Time to be listed in the Syncfusion.UI.Xaml.Controls.Input.TimePicker control.

    Declaration
    public TimeSpan MaxTime { get; set; }
    Property Value
    Type Description
    System.TimeSpan

    The default value is new TimeSpan(23,59,59)

    MinTime

    Gets or sets the Minimum Time to be listed in the Syncfusion.UI.Xaml.Controls.Input.TimePicker control.

    Declaration
    public TimeSpan MinTime { get; set; }
    Property Value
    Type Description
    System.TimeSpan

    The default value is new TimeSpan(00,00,00)

    SelectorFormatString

    Gets or sets the SelectorFormatString

    Declaration
    [ClassReference(IsReviewed = false)]
    public object SelectorFormatString { get; set; }
    Property Value
    Type
    System.Object

    SelectorItemCount

    Gets or sets the SelectorItemCount for the time selector items

    Declaration
    public int SelectorItemCount { get; set; }
    Property Value
    Type Description
    System.Int32

    The default value is 0

    SelectorItemHeight

    Gets or sets the SelectorItemHeight for the time selector items

    Declaration
    public double SelectorItemHeight { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 30

    SelectorItemSpacing

    Gets or sets the SelectorItemSpacing for the time selector items

    Declaration
    public double SelectorItemSpacing { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 4

    SelectorItemWidth

    Gets or sets the SelectorItemWidth for the time selector items

    Declaration
    public double SelectorItemWidth { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 80

    SelectorStyle

    Gets or sets the style that apply for the Syncfusion.UI.Xaml.Controls.Input.TimeSelector.

    Declaration
    [ClassReference(IsReviewed = false)]
    public Style SelectorStyle { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Style

    The default value is null

    SetValueOnLostFocus

    Gets or sets a value indicating whether set Syncfusion.UI.Xaml.Controls.Input.TimePicker.Value on lost focus.

    Declaration
    [ClassReference(IsReviewed = false)]
    public bool SetValueOnLostFocus { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if set value on lost focus; otherwise, false.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.TimeSelector

    ShowDropDownButton

    Gets or sets a value indicating whether ShowDropDownButton is set in Syncfusion.UI.Xaml.Controls.Input.TimePicker control.

    Declaration
    public bool ShowDropDownButton { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if set; otherwise, false.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.TimeSelector

    Value

    Gets or sets the value of the Syncfusion.UI.Xaml.Controls.Input.TimePicker that hold the currently selected time.

    Declaration
    [ClassReference(IsReviewed = false)]
    public object Value { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is System.DateTime.Now.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.TimePicker.SetValueOnLostFocus
    Syncfusion.UI.Xaml.Controls.Input.TimeSelector

    Watermark

    Gets or sets the WaterMark property

    Declaration
    public object Watermark { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    WatermarkTemplate

    Gets or sets a template for the WaterMark property

    Declaration
    public DataTemplate WatermarkTemplate { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.DataTemplate

    The default value is null

    Methods

    Dispose()

    Unhooks all the events that are hooked

    Declaration
    public void Dispose()

    OnAllowInlineEditing(DependencyPropertyChangedEventArgs)

    Occurs when AllowInlineEditing is set in Syncfusion.UI.Xaml.Controls.Input.TimePicker control.

    Declaration
    protected virtual void OnAllowInlineEditing(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyPropertyChangedEventArgs args
    See Also
    Syncfusion.UI.Xaml.Controls.Input.TimeSelector

    OnApplyTemplate()

    Initializes all te child elements of the Syncfusion.UI.Xaml.Controls.Input.TimePicker control.

    Declaration
    protected override void OnApplyTemplate()

    OnFormatStringChanged(DependencyPropertyChangedEventArgs)

    Occurs when FormatString is set in Syncfusion.UI.Xaml.Controls.Input.TimePicker control.

    Declaration
    protected virtual void OnFormatStringChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyPropertyChangedEventArgs args
    See Also
    Syncfusion.UI.Xaml.Controls.Input.TimeSelector

    OnGotFocus(RoutedEventArgs)

    Occurs when the focus is obtained

    Declaration
    protected override void OnGotFocus(RoutedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.RoutedEventArgs e

    OnIsDropDownOpenChanged(DependencyPropertyChangedEventArgs)

    Occurs when IsDropDownOpen is set in Syncfusion.UI.Xaml.Controls.Input.TimePicker control.

    Declaration
    protected virtual void OnIsDropDownOpenChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyPropertyChangedEventArgs args
    See Also
    Syncfusion.UI.Xaml.Controls.Input.TimeSelector

    OnKeyDown(KeyRoutedEventArgs)

    Invoked when a key is pressed.

    Declaration
    protected override void OnKeyDown(KeyRoutedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.Input.KeyRoutedEventArgs e

    OnLostFocus(RoutedEventArgs)

    Occurs when the focus is lost

    Declaration
    protected override void OnLostFocus(RoutedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.RoutedEventArgs e

    OnPointerReleased(PointerRoutedEventArgs)

    Invoked when the pointer is released.

    Declaration
    protected override void OnPointerReleased(PointerRoutedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.Input.PointerRoutedEventArgs e

    OnSelectorFormatStringChanged(DependencyPropertyChangedEventArgs)

    Occurs when SelectorFormatString is set in Syncfusion.UI.Xaml.Controls.Input.TimePicker control.

    Declaration
    protected virtual void OnSelectorFormatStringChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyPropertyChangedEventArgs args
    See Also
    Syncfusion.UI.Xaml.Controls.Input.TimeSelector

    Validate(ValidationEventArgs)

    Validates the value

    Declaration
    public void Validate(ValidationEventArgs args)
    Parameters
    Type Name Description
    ValidationEventArgs args

    Events

    ValueChanged

    Occurs when the value for Syncfusion.UI.Xaml.Controls.Input.TimePicker changed.

    Declaration
    [ClassReference(IsReviewed = false)]
    public event PropertyChangedCallback ValueChanged
    Event Type
    Type
    Windows.UI.Xaml.PropertyChangedCallback
    See Also
    Syncfusion.UI.Xaml.Controls.Input.TimePicker.Value

    Implements

    IDataValidator
    System.IDisposable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved