Skip to main content

SchedulerStorage.ResourceStorage Property

Provides access to an object which manages resources for appointments.

Namespace: DevExpress.Xpf.Scheduler

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

#Declaration

public ResourceStorage ResourceStorage { get; set; }

#Property Value

Type Description
ResourceStorage

A ResourceStorage object which manages resources for appointments.

#Remarks

Appointments can be associated with resources. Consider an application which schedules rooms in a hotel. In this application, hotel rooms available for occupancy can be represented as resources.

The ResourceStorage property provides access to a collection of resources for appointments. You can load resources from a datasource by specifying the DataSource property of the ResourceStorage object. Or, you can populate the collection manually by adding items via the ResourceStorage.Items property.

Each item in the collection is represented by the Resource class.

In bound mode, the scheduler control obtains information on appointments from a datasource, specified by the DataSource property of the AppointmentStorage object accessed via the SchedulerStorage.AppointmentStorage property. In this mode, resources from the ResourceStorage collection can be associated with the appointments via the AppointmentMapping.ResourceId property.

In unbound mode, resources can be associated with appointments manually, via the Appointment.ResourceId property.

#Examples

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

See Also