Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Scheduler Elements That Support Templates

  • 2 minutes to read

An AppointmentControl is a content container for appointment information and appointment display options. The 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.

The SchedulerControl uses different AppointmentControl descendants to visualize appointments based on the following settings:

  • The specified view.
  • Whether a user drags the appointment.
  • Whether the appointment is an all-day appointment.

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

WPFScheduler_AppointmentControlDiagam

Each Scheduler view contains AppointmentContentTemplate and AppointmentContentTemplateSelector properties that allow you to specify a template used to visualize 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