Back to Devexpress

DataSource.ResourceMappings Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-datasource-9439884c.md

latest4.4 KB
Original Source

DataSource.ResourceMappings Property

Gets an object that specifies how resource properties map to the data source fields. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public ResourceMappings ResourceMappings { get; set; }
vb
Public Property ResourceMappings As ResourceMappings

Property Value

TypeDescription
ResourceMappings

A ResourceMappings object that provides information on the mapping of the resource properties to the data fields.

|

Remarks

The ResourceMappings property can be set to either a collection of resource IDs or a string in the XML format.

Use the DataSource.ResourcesSource property to specify a data source.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ResourceMappings 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.

wpf-scheduler-use-scheduler-report-to-print-and-export-appointments/CS/PrintingExample/MainWindow.xaml#L64

xml
</dxsch:DataSource.AppointmentMappings>
<dxsch:DataSource.ResourceMappings>
    <dxsch:ResourceMappings Caption="Name" Id="Id" />

wpf-scheduler-generate-time-scales-from-view-model-collection/CS/WpfSchedulerTimelineScalesTemplate/MainWindow.xaml#L59

xml
</dxsch:DataSource.AppointmentMappings>
<dxsch:DataSource.ResourceMappings>
    <dxsch:ResourceMappings Id="Id" Caption="Name"/>

wpf-scheduler-highlight-time-intervals/CS/SchedulerCellTemplate/MainWindow.xaml#L61

xml
</dxsch:DataSource.AppointmentMappings>
<dxsch:DataSource.ResourceMappings>
    <dxsch:ResourceMappings Id="Id" Caption="Name"/>

wpf-scheduler-obtain-selected-appointment-resource-and-time-interval/CS/DXSchedulerSelection/MainWindow.xaml#L74

xml
</dxsch:DataSource.AppointmentMappings>
<dxsch:DataSource.ResourceMappings>
    <dxsch:ResourceMappings Caption="Caption" Id="Id" />

wpf-scheduler-apply-end-user-restrictions/CS/WpfApplication1/MainWindow.xaml#L40

xml
</dxsch:DataSource.AppointmentMappings>
<dxsch:DataSource.ResourceMappings>
    <dxsch:ResourceMappings Caption="Caption" Id="Id"/>

See Also

Mappings

How to: Bind Scheduler to Data using Entity Framework

DataSource Class

DataSource Members

DevExpress.Xpf.Scheduling Namespace