Back to Devexpress

AgendaView.AppointmentTemplate Property

maui-devexpress-dot-maui-dot-scheduler-dot-agendaview-4d674625.md

latest2.0 KB
Original Source

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

csharp
public DataTemplate AppointmentTemplate { get; set; }

Property Value

TypeDescription
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:

xaml
<dxsch:AgendaView.AppointmentTemplate>
    <DataTemplate x:DataType="dxsch:AgendaAppointmentViewModel">
        <Label Text="{Binding Appointment.Subject}"/>
    </DataTemplate>
</dxsch:AgendaView.AppointmentTemplate>

See Also

AgendaView Class

AgendaView Members

DevExpress.Maui.Scheduler Namespace