DataFormDateItem.PickerDisplayDate Property
Gets or sets a date that allows you to specify the month, year, or decade displayed in the current date picker view. This is a bindable property.
Namespace: DevExpress.Maui.DataForm
Assembly: DevExpress.Maui.Editors.dll
NuGet Package: DevExpress.Maui.Editors
Declaration
public DateTime PickerDisplayDate { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DateTime | 2022-09-06T00:00:00.0000000+02:00 | A structure that specifies a date. |
Remarks
The PickerDisplayDate
and PickerActiveViewType properties allow you to open a specific month, year, or decade in the date picker.
For example, if you set PickerDisplayDate
to ‘2024-12-1’ and the PickerActiveViewType to Month, the calendar displays days of December 2024 (the date’s actual month and day are not taken into account in this case). If you set PickerDisplayDate
to ‘2024-1-1’ and PickerActiveViewType to Year, the calendar displays months of 2024 (the date’s actual month and day are not taken into account in this case). If you set PickerDisplayDate
to ‘2024-1-1’ and PickerActiveViewType to Decade, the calendar displays the 2020-2029 decade.
You can also use the combination of the PickerDisplayDate
and PickerActiveViewType properties to determine the period that is currently displayed in the calendar.