ResourceMapping Class

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

Namespace: DevExpress.Xpf.Scheduler

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

Declaration

public class ResourceMapping :
    PersistentObjectMapping<IResourceStorageBase, Resource>
Public Class ResourceMapping
    Inherits PersistentObjectMapping(Of IResourceStorageBase, Resource)

Related API Members

The following members accept/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.

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>

Inheritance

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