A newer version of this page is available. Switch to the current version.

ResourceMappings Class

Provides information on the resource properties' mapping to data fields.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v19.1.dll

Declaration

public class ResourceMappings :
    MappingsBase
Public Class ResourceMappings
    Inherits MappingsBase

Related API Members

The following members accept/return ResourceMappings objects:

Remarks

The ResourceMappings class contains a set of properties whose names are similar to the persistent properties declared within the ResourceItem class. If the SchedulerControl is bound to a data source using its DataSource.ResourcesSource property, the ResourceMappings class properties allow the corresponding ResourceItem properties to be bound to appropriate fields in the data source.

Access the ResourceMappings object using the DataSource.ResourceMappings property.

Examples

<dxsch:SchedulerControl.DataSource>
    <dxsch:DataSource AppointmentsSource="{Binding Appointments}" ResourcesSource="{Binding Resources}">
        <dxsch:DataSource.AppointmentMappings>
            <dxsch:AppointmentMappings Start="StartTime" 
                                       End="EndTime" 
                                       AllDay="AllDay" 
                                       Subject="Subject" 
                                       Id="ID" 
                                       Description="Description" 
                                       LabelId="Label" 
                                       Location="Location" 
                                       RecurrenceInfo="RecurrenceInfo" 
                                       Reminder="ReminderInfo" 
                                       ResourceId="CarId" 
                                       StatusId="Status" 
                                       Type="EventType" />
        </dxsch:DataSource.AppointmentMappings>
        <dxsch:DataSource.ResourceMappings>
            <dxsch:ResourceMappings Id="ID" 
                                    Caption="Model" />
        </dxsch:DataSource.ResourceMappings>
    </dxsch:DataSource>
</dxsch:SchedulerControl.DataSource>
<dxsch:DayView ResourcesPerPage="3" />
<dxsch:MonthView/>

Inheritance

Object
BindableBase
DevExpress.Mvvm.Native.FreezableBase
MappingsBase
ResourceMappings
See Also