MonthViewHeaderItemViewModel Class
The storage for appearance settings values of an individual month view header item’s representation.
Namespace: DevExpress.Maui.Scheduler
Assembly: DevExpress.Maui.Scheduler.dll
NuGet Package: DevExpress.Maui.Scheduler
Declaration
public class MonthViewHeaderItemViewModel :
HeaderItemViewModel
Remarks
The Scheduler View uses this class in the following occurrences:
BindingContext
of a data template assigned to the MonthView.HeaderItemTemplate property stores this class’s instance.- The MonthViewHeaderItemAppearance.Customizer‘s Customize(MonthViewHeaderItemViewModel) 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 header item style and its customizer to modify the appearance of header items.
<dxs:MonthView.HeaderItemAppearance>
<dxs:MonthViewHeaderItemAppearance BorderColor="#808080"
BorderThickness="2,0,0,2"
TodayWeekDayTextColor="#FF8000"
TodayWeekDayTextFontAttributes="Bold">
<dxs:MonthViewHeaderItemAppearance.Customizer>
<views:MonthViewHeaderItemCustomizer/>
</dxs:MonthViewHeaderItemAppearance.Customizer>
</dxs:MonthViewHeaderItemAppearance>
</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 headers. This is a bindable property. | |
The storage for the Month View’s header items appearance settings. | |
Gets or sets an object that customizes the appearance of an individual month view header item. This is a bindable property. | |
TIf implemented by a class, modifies appearance settings of individual Month View header items. | |
IMonthViewHeaderItemCustomizer.Customize(MonthViewHeaderItemViewModel) | Modifies appearance settings of an individual Month View header item. |
| The storage for appearance settings values of an individual month view header item’s representation. |