Skip to main content

AppointmentItem Class

An appointment in the Scheduler.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v24.1.dll

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public class AppointmentItem :
    SchedulerItemBase

Remarks

An AppointmentItem class is WPF Scheduler’s appointment.

The following actions can be used to populate the Scheduler with appointments:

AppointmentItem collections are accessible using the following members:

Collection Member to Access
AppointmentItemCollection SchedulerControl.AppointmentItems. The collection does not contain appointment occurrences.
IEnumerable<T><AppointmentItem,> SchedulerControl.GetAppointments - returns all existing appointments, including occurrences, in the specified interval.
ObservableCollection<T><AppointmentItem,> SchedulerControl.SelectedAppointments

When an end-user creates a new appointment using an in-place editor or an appointment editing form, it fires the SchedulerControl.InitNewAppointment event. You can handle this event to modify a newly created appointment. Subsequently, the SchedulerControl.AppointmentsUpdated event occurs.

The SchedulerControl.AppointmentsUpdated event fires when an appointment is changed. You can handle this event to save changes to the external data source.

To get access to the source objects behind the selected appointments, use the SchedulerControl.SelectedAppointmentsSource property. Use the SchedulerControl.GetAppointmentItemBySourceObject method to get an appointment by its source object.

Inheritance

Object
DevExpress.Xpf.Scheduling.Internal.NotifyPropertyChangedBase
See Also