AppointmentViewModel Class
The storage for appearance settings values of an individual appointment item‘s representation.
Namespace: DevExpress.XamarinForms.Scheduler
Assembly: DevExpress.XamarinForms.Scheduler.dll
NuGet Package: DevExpress.XamarinForms.Scheduler
Declaration
public class AppointmentViewModel :
ItemViewModel
Remarks
The Scheduler View uses this class in the following occurrences:
- BindingContext of a data template assigned to the DayViewBase.AppointmentTemplate, DayViewBase.AllDayAppointmentTemplate, and MonthView.AppointmentTemplate property stores this class’s instance.
- The AppointmentStyle.Customizer‘s Customize(AppointmentViewModel) accepts this class’s instance as an argument.
This view model provides the following settings that you can customize:
Example
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>
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. | |
The interface that should implement a class that modifies appearance settings of individual appointments. | |
Modifies appearance settings of an individual appointment. | |
| The storage for appearance settings values of an individual appointment item‘s representation. |