Skip to main content

AgendaView.AppointmentTemplate Property

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

public DataTemplate AppointmentTemplate { get; set; }

Property Value

Type Description
DataTemplate

The data template that specifies the AgendaView uses to display appointments.

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