Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
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