IAppointmentCustomizer.Customize(AppointmentViewModel) Method
Modifies appearance settings of an individual appointment.
Namespace: DevExpress.Maui.Scheduler
Assembly: DevExpress.Maui.Scheduler.dll
NuGet Package: DevExpress.Maui.Scheduler
Declaration
void Customize(
AppointmentViewModel appointment
)
Parameters
Name | Type | Description |
---|---|---|
appointment | AppointmentViewModel | Appearance settings of an appointment. |
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;
}
}
}
Symbol | Description |
---|---|
Gets or sets appearance settings of appointments. This is a bindable property. | |
Contains a scheduler’s appointment appearance properties. | |
Gets or sets the object that customizes the appointment’s appearance depending on internal logic. This is a bindable property. | |
If implemented by a class, modifies appearance settings of individual appointments. | |
| Modifies appearance settings of an individual appointment. |
Stores appearance settings for an individual appointment item‘s representation. |