Skip to main content

AppointmentStorage Class

A storage which holds a collection of appointments.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v14.2.dll

#Declaration

public class AppointmentStorage :
    PersistentObjectStorageBase<AppointmentDataStorage, Appointment>

#Returned By

The SchedulerStorage.AppointmentStorage property returns an instance of AppointmentStorage.

#Remarks

AppointmentStorage is a storage which holds appointments. The functionality of the AppointmentStorage class can be accessed via the SchedulerStorage.AppointmentStorage property.

To get the collection of appointments, use the AppointmentStorage.Items property.

Connecting the AppointmentStorage object to a data source via the DataSource property enables bound mode. In this mode, if the AutoReload property is set to true, appointments are automatically retrieved from the specified data source, and when data in the data source is modified, the AppointmentStorage object automatically reloads the data. If the AutoReload property is set to false data is not automatically loaded and reloaded from the data source. You should use the SchedulerStorage.RefreshData method to manually reload data in this case.

Use the AppointmentStorage.Mappings property to specify which fields in the bound data source hold an appointment's description, location, type, recurrence information, resource id, etc. The values of these fields will be synchronized with the corresponding properties of Appointment objects.

In bound mode, the AppointmentStorage object synchronizes its data with the data source. If appointments are added, deleted or modified via the AppointmentStorage object, the changes are saved to the data source.

In unbound mode (when the AppointmentStorage object is not bound to a data source) you can use the AppointmentStorage.Items property, to manually populate the storage with appointments.

#Examples

This example demonstrates how to get access to the scheduler storage and modify its properties. For this, the SchedulerControl.Storage property is used.

#Inheritance

Object
DispatcherObject
DependencyObject
Visual
UIElement
FrameworkElement
DevExpress.Xpf.Core.DXFrameworkElement
DevExpress.Xpf.Scheduler.SchedulerFrameworkElement
DevExpress.Xpf.Scheduler.PersistentObjectStorageBase<DevExpress.Xpf.Scheduler.Native.AppointmentDataStorage, Appointment>
AppointmentStorage
See Also