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

IAppointmentCustomizer Interface

If implemented by a class, modifies appearance settings of individual appointments.

Namespace: DevExpress.Maui.Scheduler

Assembly: DevExpress.Maui.Scheduler.dll

NuGet Package: DevExpress.Maui.Scheduler

#Declaration

C#
public interface IAppointmentCustomizer

The following members return IAppointmentCustomizer objects:

#Example

This example uses the appointment style and its customizer to modify the cell’s appearance.

<dxs:WorkWeekView.AppointmentAppearance>
    <dxsch:AppointmentAppearance
        BorderThickness="2"
        BorderColor="#808080"
        ContentPadding="8"
        TextColor="Black"
        TextFontAttributes="Italic">
        <dxsch:AppointmentAppearance.Customizer>
            <views:AppointmentCustomizer/>
        </dxsch:AppointmentAppearance.Customizer>
    </dxsch:AppointmentAppearance>
</dxs:WorkWeekView.AppointmentAppearance>
class AppointmentCustomizer : IAppointmentCustomizer {
    public void Customize(AppointmentViewModel appointment) {
        if (appointment.VisibleInterval.Contains(DateTime.Now)) {
            appointment.BackgroundColor = Colors.Orange;
        }
    }
}

Scheduler Appearance - Appointment

Symbol

Description

DayViewBase.AppointmentAppearance

Gets or sets appearance settings of appointments. This is a bindable property.

AppointmentAppearance

Contains a scheduler’s appointment appearance properties.

AppointmentAppearance.Customizer

Gets or sets the object that customizes the appointment’s appearance depending on internal logic. This is a bindable property.

IAppointmentCustomizer

If implemented by a class, modifies appearance settings of individual appointments.

IAppointmentCustomizer.Customize(AppointmentViewModel)

Modifies appearance settings of an individual appointment.

AppointmentViewModel

Stores appearance settings for an individual appointment item‘s representation.

See Also