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

AppointmentItem Class

An appointment in the Scheduler.

Namespace: DevExpress.Xpf.Scheduling

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

Declaration

public class AppointmentItem :
    SourceObjectContainer

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentItem 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.

Inheritance

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