DayViewBase.AppointmentTemplate Property
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
Declaration
public DataTemplate AppointmentTemplate { get; set; }
Property Value
Type | Description |
---|---|
DataTemplate | The data template that specifies the representation of appointments. |
Remarks
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