maui-devexpress-dot-maui-dot-scheduler-dot-agendaview-4d674625.md
Gets or sets a data template that specifies the AgendaView uses to display 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 AgendaView uses to display appointments.
|
The AppointmentTemplate‘s underlying object is AgendaAppointmentViewModel. You can bind a property to AgendaAppointmentViewModel members or the members of the AppointmentItem class (available from the AgendaAppointmentViewModel.Appointment property).
The following example binds the appointment’s label to the appointment’s Subject property:
<dxsch:AgendaView.AppointmentTemplate>
<DataTemplate x:DataType="dxsch:AgendaAppointmentViewModel">
<Label Text="{Binding Appointment.Subject}"/>
</DataTemplate>
</dxsch:AgendaView.AppointmentTemplate>
See Also