Back to Devexpress

DataSource.AppointmentLabelsSource Property

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

latest1.9 KB
Original Source

DataSource.AppointmentLabelsSource Property

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

Namespace : DevExpress.Maui.Scheduler

Assembly : DevExpress.Maui.Scheduler.dll

NuGet Package : DevExpress.Maui.Scheduler

Declaration

csharp
public object AppointmentLabelsSource { get; set; }

Property Value

TypeDescription
System.Object

The collection of objects that contain appointment label information.

|

Remarks

Use the AppointmentLabelsSource property to provide a data source for the scheduler’s appointment labels.

Important

Appointment label mappings are required. Use the AppointmentLabelMappings property to map label 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