ResourceMapping Class
Provides information on the mapping of the resource properties to appropriate data fields.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v22.2.dll
NuGet Package: DevExpress.Wpf.Scheduler
Declaration
Related API Members
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 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>
Related GitHub Examples
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.