mobilecontrols-devexpress-dot-xamarinforms-dot-scheduler-e9e6f90f.md
An object that specifies data sources and mappings for the scheduler’s appointments, labels and statuses.
Namespace : DevExpress.XamarinForms.Scheduler
Assembly : DevExpress.XamarinForms.Scheduler.dll
NuGet Package : DevExpress.XamarinForms.Scheduler
public class DataSource :
SchedulerElement,
IDataSource
The following members return DataSource objects:
To bind a scheduler view to an external data source, set the view’s DataStorage property to a SchedulerDataStorage object and assign a DataSource object to the SchedulerDataStorage.DataSource property.
Use the AppointmentsSource, AppointmentLabelsSource and AppointmentStatusesSource properties to specify data sources for appointments, labels and statuses.
Important
Each binding requires a corresponding mapping. Use the AppointmentMappings, AppointmentLabelMappings and AppointmentStatusMappings properties to map properties of appointment, label and status objects to data source fields.
This example shows how to bind a DayView instance to a data source that stores custom appointment ( MedicalAppointment ) and label ( MedicalAppointmentType ) objects.
DataSource object and specify the following properties of this object:Object DevExpress.XamarinForms.Scheduler.Internal.SchedulerElement DataSource
See Also