DataSource.ResourcesSource Property

Gets or sets a collection of objects containing resource information. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling

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

Declaration

public object ResourcesSource { get; set; }
Public Property ResourcesSource As Object

Property Value

Type Description
Object

A collection of objects which contain resource information.

Remarks

The ResourcesSource property supports the MVVM design pattern. See the MVVM Framework topic to learn more.

IMPORTANT

Resource mappings are required. Use the DataSource.ResourceMappings property to specify mappings.

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/>
See Also