Version

CurrentMode Property (CalendarBase)

Returns or sets which types of calendar items will be displayed to the end user.
Syntax
'Declaration
 
Public Property CurrentMode As CalendarZoomMode
public CalendarZoomMode CurrentMode {get; set;}
Remarks

The CalendarBase provides the ability to zoom out to see larger ranges of dates and then zoom back in to change the selection similar to the functionality found in the Microsoft Vista Common Controls Calendar. The CurrentMode controls the current mode that the contained Infragistics.Controls.Editors.Primitives.CalendarItemGroup instances use to initialize its items. For example, when set to Days, which is the default value, the CalendarItemGroup will contain Infragistics.Controls.Editors.Primitives.CalendarDay instances where each represents a discrete date. When set to Months, the CalendarItemGroups will contain Infragistics.Controls.Editors.Primitives.CalendarItem instances where each represents a single month within a specific year.

There are two commands (CalendarCommandType.ZoomOutCalendarMode and CalendarCommandType.ZoomInCalendarMode) that may be used to change the CurrentMode.

Note: The value for this property cannot be set to a value that would be less than the MinCalendarMode.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also