Back to Devexpress

DataSource.AppointmentLabelMappings Property

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

latest2.1 KB
Original Source

DataSource.AppointmentLabelMappings Property

Gets or sets an object that specifies how appointment label properties are mapped to the data source fields. This is a bindable property.

Namespace : DevExpress.Maui.Scheduler

Assembly : DevExpress.Maui.Scheduler.dll

NuGet Package : DevExpress.Maui.Scheduler

Declaration

csharp
public AppointmentLabelMappings AppointmentLabelMappings { get; set; }

Property Value

TypeDescription
AppointmentLabelMappings

The object that contains mappings of the appointment label properties to the data source fields.

|

Remarks

When you bind a scheduler view to an external data source of appointment labels (DataSource.AppointmentLabelsSource), use the AppointmentLabelMappings property to define which data source fields should serve as sources of data for properties of the scheduler’s appointment label.

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