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
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: |
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. |
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: