Back to Devexpress

DataSource.AppointmentMappings Property

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

latest2.0 KB
Original Source

DataSource.AppointmentMappings Property

Gets or sets an object that specifies how appointment 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 AppointmentMappings AppointmentMappings { get; set; }

Property Value

TypeDescription
AppointmentMappings

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

|

Remarks

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

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