MonthViewCellViewModel Class
The storage for the appearance settings values of an individual month view cell.
Namespace: DevExpress.Maui.Scheduler
Assembly: DevExpress.Maui.Scheduler.dll
NuGet Package: DevExpress.Maui.Scheduler
Declaration
public class MonthViewCellViewModel :
CellViewModel
Remarks
The Scheduler View uses this class is the following occurrences:
BindingContext
of a data template assigned to the MonthView.CellTemplate property stores this class’s instance.- The MonthViewCellAppearance.Customizer‘s Customize(MonthViewCellViewModel) accepts this class’s instance as an argument.
This view model provides the following settings that you can customize:
Example
This example uses the month view cell style and its customizer to modify the cell’s appearance.
<dxs:MonthView.HeaderItemAppearance>
<dxsch:MonthViewHeaderItemAppearance TodayWeekDayTextColor="#FF8000"/>
<dxs:MonthViewHeaderItemAppearance.Customizer>
<views:MonthViewHeaderItemCustomizer/>
</dxs:MonthViewHeaderItemAppearance.Customizer>
</dxs:MonthView.HeaderItemAppearance>
class MonthViewHeaderItemCustomizer : IMonthViewHeaderItemCustomizer {
public void Customize(MonthViewHeaderItemViewModel header) {
if (header.IsToday) {
var tmp = header.BackgroundColor;
header.BackgroundColor = header.WeekDayTextColor;
header.WeekDayTextColor = tmp;
}
}
}
Symbol | Description |
---|---|
Gets or sets the apperance properties of the month view’s cells. This is a bindable property. | |
The storage for month view cell appearance settings. | |
Gets or sets an object that customizes the month view cell’s appearance depending on internal logic. This is a bindable property. | |
If implemented by a class, modifies appearance settings of individual Month View cells. | |
Modifies appearance settings of an individual Month View cell. | |
| The storage for the appearance settings values of an individual month view cell. |