'Declaration Public Class XamOutlookCalendarView Inherits System.Windows.Controls.Control Implements Infragistics.ICommandTarget
public class XamOutlookCalendarView : System.Windows.Controls.Control, Infragistics.ICommandTarget
The XamOutlookCalendarView is a composite control that contains a XamDayView, XamMonthView and XamScheduleView and switches between them based on the CurrentViewMode. The CurrentViewMode can be set but it will also be changed by the control based on interaction with its UI similar to how Microsoft Outlook works. For example clicking on the week header when in Month view will switch to a Day view in week mode for that week.
The DateNavigator property is used to provide a reference to an object that provides date information indicating the dates/view that should be displayed. Similarly as one interacts with the XamOutlookCalendarView (via the UI or programatically), it will notify the DateNavigator of the dates being displayed so that it may update its selection. This is similar to the relationship between the Calendar View in Microsoft Outlook and the DateNavigator control that displays a compact view of one or more months. The XamDateNavigator implements the IOutlookDateNavigator and therefore may be used as the DateNavigator for a XamOutlookCalendarView.
The XamOutlookCalendarView exposes many of the same properties defined on the various ScheduleControlBase derived controls. These controls are defined within its template with specific names as defined by the TemplatePart attributes defined on the control similar to how other controls define template requirements. The control will automatically bind the properties of those controls to the properties that are exposed on the XamOutlookCalendarView.
The control also exposes properties to have it automatically switch between the Schedule views and Day views based on ResourceCalendar instances being displayed within the control. The IsDayViewToScheduleViewSwitchEnabled and IsScheduleViewToDayViewSwitchEnabled properties are used to enable the functionality. The DayViewToScheduleViewSwitchThreshold and ScheduleViewToDayViewSwitchThreshold properties are used to control the threshold which must be met in order to automatically switch to the corresponding view.
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