Back to Devexpress

Scheduler Elements That Support Templates

wpf-400598-controls-and-libraries-scheduler-styles-and-templates-scheduler-elements-that-support-templates.md

latest7.6 KB
Original Source

Scheduler Elements That Support Templates

  • Aug 31, 2023
  • 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.

Each Scheduler view contains AppointmentContentTemplate and AppointmentContentTemplateSelector properties that allow you to specify a template used to visualize appointment content:

ViewAppointment Template
Day ViewDayViewBase.AppointmentContentTemplate, DayViewBase.AppointmentContentTemplateSelector, AllDayAppointmentContentTemplate, AllDayAppointmentContentTemplateSelector
Work Week ViewDayViewBase.AppointmentContentTemplate, DayViewBase.AppointmentContentTemplateSelector, AllDayAppointmentContentTemplate, AllDayAppointmentContentTemplateSelector
Week ViewDayViewBase.AppointmentContentTemplate, DayViewBase.AppointmentContentTemplateSelector, AllDayAppointmentContentTemplate, AllDayAppointmentContentTemplateSelector
Month ViewMonthView.AppointmentContentTemplate, MonthView.AppointmentContentTemplateSelector, AppointmentContentTemplate, AppointmentContentTemplateSelector
Timeline ViewTimelineView.AppointmentContentTemplate, TimelineView.AppointmentContentTemplateSelector
Agenda ViewAgendaView.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

|