windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemdateedit-7f9ed949.md
Gets or sets which date grouping Views are available in Vista display mode.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(VistaCalendarViewStyle.Default)]
[DXCategory("Appearance")]
public VistaCalendarViewStyle VistaCalendarViewStyle { get; set; }
<DefaultValue(VistaCalendarViewStyle.Default)>
<DXCategory("Appearance")>
Public Property VistaCalendarViewStyle As VistaCalendarViewStyle
| Type | Default | Description |
|---|---|---|
| VistaCalendarViewStyle | Default |
A VistaCalendarViewStyle value that specifies which date grouping Views are available in Vista display mode.
|
Available values:
| Name | Description |
|---|---|
| Default |
Combines the following views: MonthView, YearView, YearsGroupView and CenturyView.
| | MonthView |
A month view:
| | YearView |
A year view by months:
| | QuarterView |
A year view by quarters:
| | YearsGroupView |
A 12-years view:
| | CenturyView |
A century view:
| | All |
Combines the following views: MonthView, QuarterView, YearView, YearsGroupView and CenturyView.
|
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.
dateEdit1.Properties.VistaCalendarViewStyle = DevExpress.XtraEditors.VistaCalendarViewStyle.YearsGroupView;
dateEdit1.Properties.MaskSettings.MaskExpression = "yyyy";
dateEdit1.Properties.UseMaskAsDisplayFormat = true;
dateEdit1.Properties.VistaCalendarViewStyle = DevExpress.XtraEditors.VistaCalendarViewStyle.YearsGroupView
dateEdit1.Properties.MaskSettings.MaskExpression = "yyyy"
dateEdit1.Properties.UseMaskAsDisplayFormat = True
The image below shows the result:
See Also