maui-devexpress-dot-maui-dot-scheduler-de885848.md
Specifies data sources and mappings for the scheduler’s appointments, labels, and statuses.
Namespace : DevExpress.Maui.Scheduler
Assembly : DevExpress.Maui.Scheduler.dll
NuGet Package : DevExpress.Maui.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.
Note
The Scheduler allows you to delete only one item at a time.
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:System.Object BindableObject Element DevExpress.Maui.Core.Internal.DXElementBaseCore DevExpress.Maui.Scheduler.Internal.SchedulerElement DataSource
See Also