Version

CalendarBase Class

A custom control used to display one or more months.
Syntax
'Declaration
 
Public MustInherit Class CalendarBase 
   Inherits System.Windows.Controls.Control
   Implements Infragistics.ICommandTarget 
public abstract class CalendarBase : System.Windows.Controls.Control, Infragistics.ICommandTarget  
Remarks

The CalendarBase provides functionality similar to that of the Microsoft Vista Common Controls Calendar class.

The control provides navigation style functionality whereby you can zoom out to more quickly navigate the available dates and then zoom back into to change the selection. The CurrentMode is used to control the current mode. The XamCalendar.MinCalendarMode may be used to control the lowest level of dates that the end user may navigate into.

The default template for CalendarBase uses a Infragistics.Controls.Editors.Primitives.CalendarItemGroupPanel that will generate Infragistics.Controls.Editors.Primitives.CalendarItemGroup instances based on the row/column count specified via the Infragistics.Controls.Editors.Primitives.CalendarDimensions. In addition, when the AutoAdjustDimensions property is set to true, which is the default value, the panel will automatically generate additional groups to fill the available space up to its Infragistics.Controls.Editors.Primitives.CalendarItemGroupPanel.MaxGroups. The ReferenceDate is used by the groups to determine which dates should be shown.

The control supports multiple selection modes which can be controlled via its Infragistics.Controls.Primitives.SelectionType. When using a multiple selection mode such as Extended or Range, the SelectedDates property may be used to access/change the selection up to the XamCalendar.MaxSelectedDates. The control also exposes a SelectedDate property which is primarily used when in a single select mode. When in a multiselect mode, this property will return the first selected date.

The control exposes a number of properties that may be used to restrict the selectable dates. The XamCalendar.MinDate and XamCalendar.MaxDate are used to control the range within which the user may navigate. You can then disable dates within that range using either the XamCalendar.DisabledDaysOfWeek and XamCalendar.DisabledDates.

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