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

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.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Scheduler, DevExpress.Wpf.Scheduler

Declaration

public ResourceMapping Mappings { get; set; }

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).

Example

Tip

A complete sample project is available in the DevExpress Code Examples database at https://supportcenter.devexpress.com/ticket/details/e2495/dxscheduler-getting-started-lesson-2-provide-resources-for-appointments.

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 Mappings 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