A newer version of this page is available.
Switch to the current version.
DataSource Class
An object that specifies data sources and mappings for the Scheduler objects.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v18.2.dll
Declaration
public class DataSource :
DXFrameworkContentElement,
IDataSourceBase
Public Class DataSource
Inherits DXFrameworkContentElement
Implements IDataSourceBase
Related API Members
The following members accept/return DataSource objects:
Examples
NOTE
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-a-simple-scheduling-application-t545377.
<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>
Implements
Inheritance
Extension Methods
See Also
Feedback