maui-devexpress-dot-maui-dot-scheduler-dot-dayviewbase-7032029d.md
Gets or sets a data template that specifies the representation of appointments. This is a bindable property.
Namespace : DevExpress.Maui.Scheduler
Assembly : DevExpress.Maui.Scheduler.dll
NuGet Package : DevExpress.Maui.Scheduler
public DataTemplate AppointmentTemplate { get; set; }
| Type | Description |
|---|---|
| DataTemplate |
The data template that specifies the representation of appointments.
|
The AppointmentTemplate ‘s underlying object is AppointmentViewModel. You can bind a property to the AppointmentViewModel members or members of the AppointmentItem class (available from the AppointmentViewModel.Appointment property).
The following code sample binds the appointment’s label to the appointment’s Subject property:
<dxsch:DayView.AppointmentTemplate>
<DataTemplate>
<Grid BackgroundColor="DarkOrange" >
<Label Text="{Binding Appointment.Subject}"/>
</Grid>
</DataTemplate>
</dxsch:DayView.AppointmentTemplate>
See Also