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.
Each Scheduler view contains AppointmentContentTemplate and AppointmentContentTemplateSelector properties that allow you to specify a template used to visualize appointment content:
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: AllDayCellContentTemplateSelector Month View: | |
Time Ruler | ||
Resources Tree cells | The ResourceMappings.Caption property of the SchedulerControl.DataSource | |
Resources Tree groups | The ResourceMappings.Group property of the SchedulerControl.DataSource | |
Date Headers | DevExpress.Xpf.Scheduling.VisualData.DateHeaderViewModel | |
Resource Headers | DevExpress.Xpf.Scheduling.VisualData.ResourceHeaderViewModel |