SchedulerStorage.ResourceStorage Property
Provides access to an object which manages resources for appointments.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduler
Declaration
Property Value
Type | Description |
---|---|
ResourceStorage | A ResourceStorage object which manages resources for appointments. |
Remarks
Important
You are viewing documentation for the legacy WPF Scheduler control. If you’re starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.
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 DataMember and DataSource properties 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 an object with the Resource interface.
In bound mode, the scheduler control obtains information on appointments from a datasource, specified by the DataMember and DataSource properties 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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ResourceStorage property.
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.