Skip to main content

RepositoryItemDateEdit.VistaCalendarViewStyle Property

Gets or sets which date grouping Views are available in Vista display mode.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(VistaCalendarViewStyle.Default)]
[DXCategory("Appearance")]
public VistaCalendarViewStyle VistaCalendarViewStyle { get; set; }

Property Value

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:

DateEdit-MonthView.png

YearView

A year view by months:

DateEdit-YearView.png

QuarterView

A year view by quarters:

DateEdit-QtrView.png

YearsGroupView

A 12-years view:

DateEdit-YearsGroupView.png

CenturyView

A century view:

DateEdit-CenturyView.png

All

Combines the following views: MonthView, QuarterView, YearView, YearsGroupView and CenturyView.

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:

Display Years - WinForms DateEdit, DevExpress

See Also