Back to Devexpress

Appointments

wpf-119212-controls-and-libraries-scheduler-appointments-appointment.md

latest4.1 KB
Original Source

Appointments

  • Nov 29, 2021
  • 2 minutes to read

Overview

An appointment is an activity scheduled for a specific time interval. An activity is characterized by its subject, location, category (Label), status (Status) and description. An appointment may also contain custom properties. Appointments can be recurring, which means that an activity can be scheduled to repeat at specified time intervals.

The scheduler displays an appointment as a color rectangle with text and graphics elements, as illustrated in the picture below.

An AppointmentItem object represents an appointment, and the the active View, which is used to show the Scheduler’s data, determines its visual representation.

Appointment Types

Appointments are of several types, indicated by the AppointmentItem.Type property. A regular appointment type is AppointmentType.Normal. All appointment types are listed in the AppointmentType enumeration.

The following diagram illustrates the difference between recurring and non-recurring appointment types.

To learn more about recurring appointments and their types, see the Recurrence document.

Data Binding

Appointments can be stored in the data source. To use them in a scheduler, bind a data source to the DataSource.AppointmentsSource property and specify the DataSource.AppointmentMappings. The DataSource.AppointmentMappings property can be set to either a collection of resource IDs or a string in the XML format.

Member Table

MemberDescription
AppointmentItemAn appointment in the Scheduler.
SchedulerControl.AppointmentItemsProvides access to the appointments in the scheduler.
SchedulerControl.GetAppointmentsReturns the collection of appointments for the specified time interval.
SchedulerControl.SelectedAppointmentsProvides access to the selected appointments.
SchedulerControl.InitNewAppointmentOccurs before a new AppointmentItem is created in the SchedulerControl.
SchedulerControl.AppointmentsUpdatedOccurs after Scheduler appointments are updated.
SchedulerControl.GetAppointmentItemBySourceObjectGets a source object’s associated appointment.
SchedulerControl.SelectedAppointmentsSourceGets or sets the object used as the selected appointments’ source. This is a dependency property.

See Also

Customize Colors