Back to Devexpress

RepositoryItemDateEdit.CalendarView Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemdateedit-cda98368.md

latest4.4 KB
Original Source

RepositoryItemDateEdit.CalendarView Property

Gets or sets the appearance of the calendar in the drop-down window.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(CalendarView.Default)]
[DXCategory("Appearance")]
public CalendarView CalendarView { get; set; }
vb
<DefaultValue(CalendarView.Default)>
<DXCategory("Appearance")>
Public Property CalendarView As CalendarView

Property Value

TypeDefaultDescription
CalendarViewDefault

A CalendarView enumearation value that specifies the calendar appearance.

|

Available values:

NameDescription
Default

The appearance of the calendar is dependent on the current OS.

| | Vista |

The Vista-style calendar:

| | Classic |

The classic calendar:

| | TouchUI |

The touch-aware date-editing UI:

For a DateEdit control, the control’s mask (see the RepositoryItemTextEdit.MaskSettings) specifies which date-time columns are displayed in the dropdown calendar.

To display time columns, enable the RepositoryItemDateEdit.CalendarTimeEditing option.

| | ClassicNew |

An Outlook 2016-inspired calendar style.

| | Fluent |

The calendar that supports the Acrylic and Reveal Highlight effects and allows you to mirror the appearance of the Windows 10 calendar.

|

Remarks

The CalendarView property specifies the appearance of the calendar in the drop-down window. To allow users to edit the time portion of a date-time value using the drop-down calendar, enable the RepositoryItemDateEdit.CalendarTimeEditing property.

csharp
using DevExpress.Utils;
using DevExpress.XtraEditors.Repository;

dateEdit1.Properties.CalendarView = CalendarView.Fluent;
dateEdit1.Properties.CalendarTimeEditing = DefaultBoolean.True;
vb
Imports DevExpress.Utils
Imports DevExpress.XtraEditors.Repository

dateEdit1.Properties.CalendarView = CalendarView.Fluent
dateEdit1.Properties.CalendarTimeEditing = DefaultBoolean.True

See Also

CalendarTimeEditing

CalendarTimeProperties

VistaCalendarViewStyle

RepositoryItemDateEdit Class

RepositoryItemDateEdit Members

DevExpress.XtraEditors.Repository Namespace