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

SchedulerStorage.ResourceStorage Property

Provides access to an object which manages resources for appointments.

Namespace: DevExpress.Xpf.Scheduler

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

Declaration

public ResourceStorage ResourceStorage { get; set; }

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.

Example

Tip

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E2495.

This example demonstrates how to specify standard mappings for resource properties via the ResourceStorage.Mappings property.

<dxsch:SchedulerStorage.ResourceStorage>
    <dxsch:ResourceStorage>
        <dxsch:ResourceStorage.Mappings>
            <dxsch:ResourceMapping Caption="Model" Id="ID" Image="Picture"/>
        </dxsch:ResourceStorage.Mappings>
    </dxsch:ResourceStorage>
</dxsch:SchedulerStorage.ResourceStorage>

The following code snippets (auto-collected from DevExpress Examples) contain references 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.

See Also