Skip to main content
A newer version of this page is available. .

Scheduler Elements That Support Templates

  • 2 minutes to read

An AppointmentControl is a content container for appointment information and appointment display options. The DevExpress.Xpf.Scheduling.VisualData.AppointmentViewModel object contains appointment information and represents a data context for the AppointmentControl template.

The EditTemplate property specifies the inplace editor data template. The ImageBoxTemplate property specifies the data template visualized in the appointment’s bottom right corner where recurrence and reminder icons are located.

A particular control used for display is the AppointmentControl descendant and depends on the current view, an operation mode (drag-and-drop) and whether the appointment is an all-day appointment.

The class diagram of the visual appointment controls is shown below.

WPFScheduler_AppointmentControlDiagam

Each Scheduler view provides the AppointmentContentTemplate and AppointmentContentTemplateSelector properties which allow you to specify a template used to visualize the appointment content:

View Appointment Template
Day View DayViewBase.AppointmentContentTemplate, DayViewBase.AppointmentContentTemplateSelector, AllDayAppointmentContentTemplate, AllDayAppointmentContentTemplateSelector
Work Week View DayViewBase.AppointmentContentTemplate, DayViewBase.AppointmentContentTemplateSelector, AllDayAppointmentContentTemplate, AllDayAppointmentContentTemplateSelector
Week View DayViewBase.AppointmentContentTemplate, DayViewBase.AppointmentContentTemplateSelector, AllDayAppointmentContentTemplate, AllDayAppointmentContentTemplateSelector
Month View MonthView.AppointmentContentTemplate, MonthView.AppointmentContentTemplateSelector, AppointmentContentTemplate, AppointmentContentTemplateSelector
Timeline View TimelineView.AppointmentContentTemplate, TimelineView.AppointmentContentTemplateSelector
Agenda View AgendaView.AppointmentContentTemplate, AgendaView.AppointmentContentTemplateSelector

The table below lists template properties that allow you to modify the SchedulerControl visual elements.

Visual Element

Property

Data Context (Binding Source)

Time Cells

Day View, Week View, Work Week View:

AllDayCellContentTemplate

AllDayCellContentTemplateSelector

CellContentTemplate

CellContentTemplateSelector

Month View:

CellContentTemplate

CellContentTemplateSelector

DayCellViewModel

Time Ruler

TimeRulerTemplate

DayViewBase.TimeRulersSource

Resources Tree cells

ResourceCellTemplate

The ResourceMappings.Caption property of the SchedulerControl.DataSource

Resources Tree groups

GroupCellTemplate

The ResourceMappings.Group property of the SchedulerControl.DataSource

Appointment flyout

FlyoutContentTemplate

AppointmentItem

Date Headers

DateHeaderContentTemplate

DateHeaderContentTemplateSelector

DevExpress.Xpf.Scheduling.VisualData.DateHeaderViewModel

Resource Headers

ResourceHeaderContentTemplate

ResourceHeaderContentTemplateSelector

DevExpress.Xpf.Scheduling.VisualData.ResourceHeaderViewModel