Back to Devexpress

DataSource.AppointmentsSource Property

maui-devexpress-dot-maui-dot-scheduler-dot-datasource.md

latest2.0 KB
Original Source

DataSource.AppointmentsSource Property

Gets or sets a collection of objects that stores appointment information. This is a bindable property.

Namespace : DevExpress.Maui.Scheduler

Assembly : DevExpress.Maui.Scheduler.dll

NuGet Package : DevExpress.Maui.Scheduler

Declaration

csharp
public object AppointmentsSource { get; set; }

Property Value

TypeDescription
System.Object

The collection of objects that contain appointment information.

|

Remarks

Use the AppointmentsSource property to specify a data source for the scheduler’s appointments.

Note

The Scheduler allows you to delete only one item at a time.

Important

Appointment mappings are required. Use the AppointmentMappings property to map appointment properties to data source fields.

Example

This example shows how to bind a DayView instance to a data source that stores custom appointment ( MedicalAppointment ) and label ( MedicalAppointmentType ) objects.

  1. Assign a view model object to the content page’s BindingContext property.
  2. Set the DayView.DataStorage property to a SchedulerDataStorage object.
  3. Set the SchedulerDataStorage.DataSource property to a DataSource object and specify the following properties of this object:

See Also

DataSource Class

DataSource Members

DevExpress.Maui.Scheduler Namespace