Skip to main content
A newer version of this page is available. .

DataSource Class

An object that specifies data sources and mappings for the Scheduler objects.

Namespace: DevExpress.Xpf.Scheduling

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

Declaration

public class DataSource :
    DXFrameworkContentElement,
    IDataSourceBase

The following members return DataSource objects:

Example

<dxsch:SchedulerControl.DataSource>
    <dxsch:DataSource AppointmentsSource="{Binding Appointments}" ResourcesSource="{Binding Doctors}">
        <dxsch:DataSource.AppointmentMappings>
            <dxsch:AppointmentMappings AllDay="AllDay"
                Description="Notes"
                End="EndTime"
                Id="Id"
                LabelId="CategoryId"
                Location="Location"
                RecurrenceInfo="RecurrenceInfo"
                Reminder="ReminderInfo"
                ResourceId="DoctorId"
                Start="StartTime"
                StatusId="StatusId"
                Subject="PatientName"
                Type="Type">
                <dxsch:CustomFieldMapping Mapping="InsuranceNumber" Name="InsuranceNumber" />
                <dxsch:CustomFieldMapping Mapping="FirstVisit" Name="FirstVisit" />
            </dxsch:AppointmentMappings>
        </dxsch:DataSource.AppointmentMappings>
        <dxsch:DataSource.ResourceMappings>
            <dxsch:ResourceMappings Caption="Name" Id="Id" />
        </dxsch:DataSource.ResourceMappings>
    </dxsch:DataSource>
</dxsch:SchedulerControl.DataSource>

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

Implements

See Also