menu

UWP

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

    Show / Hide Table of Contents

    Class SfDateSelector

    Represents a selectable object inside the Syncfusion.UI.Xaml.Controls.Input.DatePicker.

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

    DateSelector is a Windows.UI.Xaml.Controls.Control

    Constructors

    SfDateSelector()

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

    Declaration
    public SfDateSelector()
    See Also
    Syncfusion.UI.Xaml.Controls.Input.DatePicker

    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

    DayCellTemplateProperty

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

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

    DayCellTemplateSelectorProperty

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

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

    FormatStringProperty

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

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

    HeaderProperty

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

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

    HeaderStyleProperty

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

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

    HeaderTemplateProperty

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

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

    MaxDateProperty

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

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

    MinDateProperty

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

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

    MonthCellTemplateProperty

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

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

    MonthCellTemplateSelectorProperty

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

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

    SelectedDateTimeProperty

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

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

    SelectedForegroundProperty

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

    Declaration
    public static readonly DependencyProperty SelectedForegroundProperty
    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

    ShowCancelButtonProperty

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

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

    ShowDoneButtonProperty

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

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

    YearCellTemplateProperty

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

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

    YearCellTemplateSelectorProperty

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

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

    Properties

    AccentBrush

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

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

    DayCellTemplate

    Gets or sets the template for day looping selector.

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

    The datatemplate of the day.

    Remarks

    Use as the datatemplate for the day looping selector. The default value is null.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.MonthCellTemplate
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.YearCellTemplate
    Syncfusion.UI.Xaml.Controls.Input.DatePicker

    DayCellTemplateSelector

    Gets or sets the template selector for day looping selector.

    Declaration
    [ClassReference(IsReviewed = false)]
    public DataTemplateSelector DayCellTemplateSelector { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.Controls.DataTemplateSelector
    Remarks

    Use as the datatemplate for the day looping selector. The default value is null.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.MonthCellTemplate
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.YearCellTemplate
    Syncfusion.UI.Xaml.Controls.Input.DatePicker

    FormatString

    Getsor sets the Format of the string to be displayed in the Syncfusion.UI.Xaml.Controls.Input.DateSelector control.

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

    The default value is m:d:y

    Header

    Gets or sets the data used for the header of Syncfusion.UI.Xaml.Controls.Input.DateSelector.

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

    The default value is null.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.HeaderStyle
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.HeaderTemplate
    Syncfusion.UI.Xaml.Controls.Input.DatePicker

    HeaderStyle

    Gets or sets the style of the header of the data control field.

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

    The default value is null.

    Remarks

    The HeaderStyle property governs the appearance of any text displayed in the header item

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

    HeaderTemplate

    Gets or sets the datatemplate used to display the content of the Syncfusion.UI.Xaml.Controls.Input.DateSelector header.

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

    The default value is null.

    Remarks

    Use the HeaderTemplate property to specify the custom content displayed for the header section of a date selector object

    See Also
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.Header
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.HeaderStyle
    Syncfusion.UI.Xaml.Controls.Input.DatePicker

    MaxDate

    Gets or sets the Maximum number of dates to be listed in the Syncfusion.UI.Xaml.Controls.Input.DateSelector control.

    Declaration
    public DateTime MaxDate { get; set; }
    Property Value
    Type
    System.DateTime

    MinDate

    Gets or sets the Minimum number of dates to be listed in the Syncfusion.UI.Xaml.Controls.Input.DateSelector control.

    Declaration
    public DateTime MinDate { get; set; }
    Property Value
    Type
    System.DateTime

    MonthCellTemplate

    Gets or sets the template for month looping selector.

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

    The datatemplate of the month.

    Remarks

    Use as the datatemplate for the month looping selector. The default value is null.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.DayCellTemplate
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.YearCellTemplate
    Syncfusion.UI.Xaml.Controls.Input.DatePicker

    MonthCellTemplateSelector

    Gets or sets the template selector for month looping selector.

    Declaration
    [ClassReference(IsReviewed = false)]
    public DataTemplateSelector MonthCellTemplateSelector { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.Controls.DataTemplateSelector
    Remarks

    Use as the datatemplate for the month looping selector. The default value is null.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.DayCellTemplate
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.YearCellTemplate
    Syncfusion.UI.Xaml.Controls.Input.DatePicker

    SelectedDateTime

    Gets or sets the currently selected date for Syncfusion.UI.Xaml.Controls.Input.DateSelector.

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

    The default value is System.DateTime.Now.

    Remarks

    Use to hold the currently selected date value.

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

    SelectedForeground

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

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

    The default value is null.

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

    SelectorItemCount

    Gets or sets the SelectorItemCount for the date 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 date selector items

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

    The default value is 80

    SelectorItemSpacing

    Gets or sets the SelectorItemSpacing for the date 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 date 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 LoopingSelector.

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

    The default value is null.

    Remarks

    Use to apply the style to the looping selector inside the Syncfusion.UI.Xaml.Controls.Input.DateSelector.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.DatePicker
    LoopingSelectorItem

    ShowCancelButton

    Gets or sets a value indicating whether show or hide the cancel button .

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

    true the cancel button is show; otherwise,cancel button not showing false.

    Remarks

    The default value is true.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.ShowDoneButton
    Syncfusion.UI.Xaml.Controls.Input.DatePicker

    ShowDoneButton

    Gets or sets a value indicating whether show or hide the done button.

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

    true the done button is show; otherwise done button not showing, false.

    Remarks

    The default value is true.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.ShowCancelButton
    Syncfusion.UI.Xaml.Controls.Input.DatePicker

    YearCellTemplate

    Gets or sets the template for year looping selector.

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

    The datatemplate of the year.

    Remarks

    Use as the datatemplate for the year looping selector. The default value is null.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.MonthCellTemplate
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.DayCellTemplate
    Syncfusion.UI.Xaml.Controls.Input.DatePicker

    YearCellTemplateSelector

    Gets or sets the template selector for year looping selector.

    Declaration
    [ClassReference(IsReviewed = false)]
    public DataTemplateSelector YearCellTemplateSelector { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.Controls.DataTemplateSelector
    Remarks

    Use as the datatemplate for the year looping selector. The default value is null.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.MonthCellTemplate
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.DayCellTemplate
    Syncfusion.UI.Xaml.Controls.Input.DatePicker

    Methods

    Dispose()

    Unhooks all the events that are hooked

    Declaration
    public void Dispose()

    OnApplyTemplate()

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

    Declaration
    protected override void OnApplyTemplate()

    OnFormatStringChanged(DependencyPropertyChangedEventArgs)

    Occurs when the data used as FormatString has changed.

    Declaration
    protected virtual void OnFormatStringChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyPropertyChangedEventArgs args

    OnKeyDown(KeyRoutedEventArgs)

    Handles keydown event Syncfusion.UI.Xaml.Controls.Input.DateSelector control.

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

    Events

    Cancel

    Occurs when cancel button is clicked.

    Declaration
    [ClassReference(IsReviewed = false)]
    public event RoutedEventHandler Cancel
    Event Type
    Type
    Windows.UI.Xaml.RoutedEventHandler

    Done

    Occurs when done is clicked.

    Declaration
    [ClassReference(IsReviewed = false)]
    public event RoutedEventHandler Done
    Event Type
    Type
    Windows.UI.Xaml.RoutedEventHandler

    SelectedDateTimeChanged

    Occurs when selected date changed.

    Declaration
    [ClassReference(IsReviewed = false)]
    public event PropertyChangedCallback SelectedDateTimeChanged
    Event Type
    Type
    Windows.UI.Xaml.PropertyChangedCallback
    Remarks

    raised when selected date property is changed.

    See Also
    Syncfusion.UI.Xaml.Controls.Input.DateSelector.SelectedDateTime

    Implements

    System.IDisposable

    Extension Methods

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