AgendaView.AppointmentTemplate Property
In This Article
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
#Declaration
C#
public DataTemplate AppointmentTemplate { get; set; }
#Property Value
Type | Description |
---|---|
Data |
The data template that specifies the Agenda |
#Remarks
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