RepositoryItemDateEdit.VistaCalendarViewStyle Property
Gets or sets which date grouping Views are available in Vista display mode.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[DefaultValue(VistaCalendarViewStyle.Default)]
[DXCategory("Appearance")]
public VistaCalendarViewStyle VistaCalendarViewStyle { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Vista |
Default | A Vista |
Available values:
Name | Description |
---|---|
Default | Combines the following views: Month |
Month |
A month view: |
Year |
A year view by months: |
Quarter |
A year view by quarters: |
Years |
A 12-years view: |
Century |
A century view: |
All | Combines the following views: Month |
#Remarks
The Vista display mode can be enabled with the RepositoryItemDateEdit.CalendarView property. In this mode, you can use the VistaCalendarViewStyle
property to specify which date grouping Views are available to end-users.
#Example: Display Years
dateEdit1.Properties.VistaCalendarViewStyle = DevExpress.XtraEditors.VistaCalendarViewStyle.YearsGroupView;
dateEdit1.Properties.MaskSettings.MaskExpression = "yyyy";
dateEdit1.Properties.UseMaskAsDisplayFormat = true;
The image below shows the result: