mobilecontrols-devexpress-dot-xamarinforms-dot-scheduler-9fd0fc78.md
The interface that should implement a class that modifies appearance settings of individual appointments.
Namespace : DevExpress.XamarinForms.Scheduler
Assembly : DevExpress.XamarinForms.Scheduler.dll
NuGet Package : DevExpress.XamarinForms.Scheduler
public interface IAppointmentCustomizer
The following members return IAppointmentCustomizer objects:
This example demonstrates how to use the appointment style and its customizer to modify the cell’s appearance.
<dxs:WorkWeekView.AppointmentStyle>
<dxs:AppointmentStyle
BorderThickness="2"
BorderColor="#808080"
ContentPadding="8">
<dxs:AppointmentStyle.TextStyle>
<dxs:TextStyle Color="Black"/>
</dxs:AppointmentStyle.TextStyle>
<dxs:AppointmentStyle.Customizer>
<views:AppointmentCustomizer/>
</dxs:AppointmentStyle.Customizer>
</dxs:AppointmentStyle>
</dxs:WorkWeekView.AppointmentStyle>
class AppointmentCustomizer : IAppointmentCustomizer {
public void Customize(AppointmentViewModel appointment) {
if (appointment.VisibleInterval.Contains(DateTime.Now)) {
appointment.BackgroundColor = Color.Orange;
}
}
}
|
Symbol
|
Description
| | --- | --- | |
|
Gets or sets appearance settings of appointments.
| |
|
The storage of appointment item appearance settings.
| |
|
Gets or sets the object that customizes the appointment appearance depending on internal logic.
| |
IAppointmentCustomizer
|
The interface that should implement a class that modifies appearance settings of individual appointments.
| |
IAppointmentCustomizer.Customize(AppointmentViewModel)
|
Modifies appearance settings of an individual appointment.
| |
|
The storage for appearance settings values of an individual appointment item‘s representation.
|
See Also