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

AppointmentControl Class

A base class for the controls which visualize an appointment in a Scheduler view.

Namespace: DevExpress.Xpf.Scheduling.Visual

Assembly: DevExpress.Xpf.Scheduling.v21.2.dll

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public abstract class AppointmentControl :
    AppointmentControlBase,
    IResizableAppointment

Remarks

An AppointmentControl is a content container for appointment information and appointment display options. Appointment information is contained in the DevExpress.Xpf.Scheduling.VisualData.AppointmentViewModel object which is a data context for the AppointmentControl template.

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
Work Week View DayViewBase.AppointmentContentTemplate, DayViewBase.AppointmentContentTemplateSelector
Week View DayViewBase.AppointmentContentTemplate, DayViewBase.AppointmentContentTemplateSelector
Month View MonthView.AppointmentContentTemplate, MonthView.AppointmentContentTemplateSelector
Timeline View TimelineView.AppointmentContentTemplate, TimelineView.AppointmentContentTemplateSelector

 

Tip

To create a template, you can start with the AppointmentContentPanel object which is a built-in template designed to display appointment information similar to Outlook.

You can use a custom style to specify borders, background, padding and set the following appointment display options:

See the Visual Appointment topic for more information.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentControl class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also