[]
Gets or sets a value that indicates whether the calendar displays a month, year, or decade. This is a dependency property.
public CalendarMode DisplayMode { get; set; }
Public Property DisplayMode As CalendarMode
Type | Description |
---|---|
CalendarMode | A value that indicates what length of time the GcDropDownCalendar should display. |
A GcDropDownCalendar can display a month, a year, or a decade.
The DisplayMode just can be set to the value between StartDisplayMode and EndDisplayMode. When DisplayMode property value is same as StartDisplayMode, mouse click and keyboard operation ( Space/Enter ) will select dates according to the SelectionMode; if DisplayMode property value is higher than StartDisplayMode, i.e. DisplayMode: GrapeCity.Windows.InputMan.CalendarMode.Year, StartDisplayMode is GrapeCity.Windows.InputMan.CalendarMode.Month, mouse click and keyboard operation ( Space/Enter ) will work as ZoomIn operation.
If you set DisplayMode to a value that is less than the StartDisplayMode property, DisplayMode is set to StartDisplayMode. If you set DisplayMode to a value that is greater than the EndDisplayMode property, DisplayMode is set to EndDisplayMode.
Type | Condition |
---|---|
ArgumentException | Occurs when value set to the DisplayMode property is undefined in the CalendarMode enumeration. |