Skip to main content

AppointmentControl Class

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

Namespace: DevExpress.Xpf.Scheduling.Visual

Assembly: DevExpress.Xpf.Scheduling.v26.1.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 AppointmentViewModel object, which is a data context for the AppointmentControl template.

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_AppointmentControlDiagram

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
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.

See Also