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

ResourceMapping Class

Provides information on the mapping of the resource properties to appropriate data fields.

Namespace: DevExpress.Xpf.Scheduler

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

Declaration

public class ResourceMapping :
    PersistentObjectMapping<IResourceStorageBase, Resource>

The following members return ResourceMapping objects:

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.

The ResourceMapping class contains a set of properties whose names are similar to the persistent properties declared within the Resource interface. If the resources storage object (ResourceStorage) is bound to a data source via its DataSource property, the properties of the ResourceMapping class allow the corresponding persistent properties of resources to be bound to appropriate fields in the data source.

A ResourceMapping object can be accessed via the resources storage’s ResourceStorage.Mappings 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 ResourceMapping class.

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.

Inheritance

Object
DispatcherObject
DependencyObject
Visual
UIElement
FrameworkElement
DevExpress.Xpf.Core.DXFrameworkElement
DevExpress.Xpf.Scheduler.SchedulerFrameworkElement
DevExpress.Xpf.Scheduler.PersistentObjectMapping<IResourceStorageBase, Resource>
ResourceMapping
See Also