Class DateRangeFlyoutPresenter
Represents a control that allows user to browse, select one or more date in Month, Year, Decade and Century view.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Calendar
Assembly: Syncfusion.Calendar.WinUI.dll
Syntax
public class DateRangeFlyoutPresenter : DropDownFlyoutPresenter, IDisposable
Constructors
DateRangeFlyoutPresenter()
Initializes a new instance of the DateRangeFlyoutPresenter class.
Declaration
public DateRangeFlyoutPresenter()
Fields
MaxDateProperty
Identifies MaxDate dependency property.
Declaration
public static readonly DependencyProperty MaxDateProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
MaxDatesCountInRangeProperty
Identifies the MaxDatesCountInRange dependency property.
Declaration
public static readonly DependencyProperty MaxDatesCountInRangeProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
MinDateProperty
Identifies MinDate dependency property.
Declaration
public static readonly DependencyProperty MinDateProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
MinDatesCountInRangeProperty
Identifies the MinDatesCountInRange dependency property.
Declaration
public static readonly DependencyProperty MinDatesCountInRangeProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
PresetPositionProperty
Identifies the PresetPosition dependency property.
Declaration
public static readonly DependencyProperty PresetPositionProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
SelectedRangeProperty
Identifies SelectedRange dependency property.
Declaration
public static readonly DependencyProperty SelectedRangeProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
Properties
MaxDate
Gets or sets the last date to be displayed.
Declaration
public DateTimeOffset MaxDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTimeOffset | The last date to display. |
MaxDatesCountInRange
Gets or sets the maximum span of days that can be allowed in date range selection.
Declaration
public Nullable<ulong> MaxDatesCountInRange { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | The default value is null. |
MinDate
Gets or sets the first date to display.
Declaration
public DateTimeOffset MinDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTimeOffset | The first date to display. |
MinDatesCountInRange
Gets or sets the minimum span of days that can be allowed in date range selection.
Declaration
public ulong MinDatesCountInRange { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 | The default value is 0. |
PresetPosition
Gets or sets the position that specifies the position of Preset.
Declaration
public PresetPosition PresetPosition { get; set; }
Property Value
Type | Description |
---|---|
PresetPosition | The default value is End. |
SelectedRange
Gets or sets the selected date range in range selection mode.
Declaration
public DateTimeOffsetRange SelectedRange { get; set; }
Property Value
Type |
---|
DateTimeOffsetRange |
Remarks
The default value is null. SelectedDateRangeChanged event occurs, when dare range is changed. Use this only when selection mode is range.
Methods
Dispose()
Disposes all the resources used by the DateRangeFlyoutPresenter class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the DateRangeFlyoutPresenter class.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Indicates whether the call is from Dispose method or from a System.GC.SuppressFinalize(System.Object). |
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
Overrides
Events
ItemPrepared
Occurs when calendar item is preparing.
Declaration
public event EventHandler<CalendarItemPreparedEventArgs> ItemPrepared
Event Type
Type |
---|
System.EventHandler<CalendarItemPreparedEventArgs> |
SelectedDateRangeChanged
Occurs when SelectedRange is changes.
Declaration
public event EventHandler<SelectedDateRangeChangedEventArgs> SelectedDateRangeChanged
Event Type
Type |
---|
System.EventHandler<SelectedDateRangeChangedEventArgs> |