ResourceStorage.Mappings Property

Contains information on mappings of standard resource properties to appropriate fields in a datasource.

Namespace: DevExpress.Xpf.Scheduler

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

Declaration

public ResourceMapping Mappings { get; set; }
Public Property Mappings As ResourceMapping

Property Value

Type Description
ResourceMapping

A ResourceMapping object providing functionality for mapping resource properties to appropriate data fields.

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.

Use the Mappings property to bind the Resource properties to the appropriate fields in the data source, specified via the PersistentObjectStorage<T>.DataSource property of the current ResourceStorage.

If the properties provided by the ResourceMapping object are not enough, and you need to display more information for resources, you should use the ResourceStorage.CustomFieldMappings property to map these custom properties to the appropriate fields in a datasource.

To get step-by-step instructions on how to specify mappings of resource properties to data fields, refer to How to: Bind a Scheduler to MS Access Database (Part 2) (legacy).

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