SchedulerStorage.ResourceStorage Property

Provides access to an object which manages resources for appointments.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v20.1.dll

Declaration

public ResourceStorage ResourceStorage { get; set; }
Public Property ResourceStorage As ResourceStorage

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.

Examples

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>
See Also