AppointmentItem Class
An appointment in the Scheduler.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v24.1.dll
NuGet Package: DevExpress.Wpf.Scheduling
Declaration
Related API Members
The following members return AppointmentItem objects:
Remarks
An AppointmentItem
class is WPF Scheduler’s appointment.
The following actions can be used to populate the Scheduler with appointments:
- Invoke the Appointment Window.
- Activate the In-Place Editor.
- Assign a collection of data objects to the DataSource.AppointmentsSource property and specify the required mappings.
- Add appointments to the SchedulerControl.AppointmentItems collection.
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.