maui-devexpress-dot-maui-dot-scheduler-0bb4010b.md
The storage for appearance settings values of an individual Day View header item’s representation.
Namespace : DevExpress.Maui.Scheduler
Assembly : DevExpress.Maui.Scheduler.dll
NuGet Package : DevExpress.Maui.Scheduler
public class DayViewHeaderItemViewModel :
HeaderItemViewModel
The Scheduler View uses this class in the following occurrences:
BindingContext of a data template assigned to the DayViewBase.HeaderItemTemplate property stores this class’s instance.This view model provides the following settings that you can customize:
This example uses the day view header item style and its customizer to modify the header’s appearance.
<dxs:WorkWeekView.HeaderItemAppearance>
<dxs:DayViewHeaderItemAppearance
BackgroundColor="Gray"
TodayDayNumberBackgroundColor="#FF8000"
TextSpacing="16"
BorderThickness="2"
BorderColor="#f0f0f0"
DayNumberTextColor="Black"
TodayDayNumberTextColor="White"
WeekDayTextColor="Black"
TodayWeekDayTextColor="#FF8000">
<dxs:DayViewHeaderItemAppearance.Customizer>
<views:HeaderItemCustomizer/>
</dxs:DayViewHeaderItemAppearance.Customizer>
</dxs:DayViewHeaderItemAppearance>
</dxs:WorkWeekView.HeaderItemAppearance>
class HeaderItemCustomizer : IDayViewHeaderItemCustomizer {
public void Customize(DayViewHeaderItemViewModel header) {
if (header.IsToday) {
header.BackgroundColor = header.AlternateBackgroundColor;
header.AlternateBackgroundColor = Colors.White;
Color tmp = header.DayNumberTextColor;
header.DayNumberTextColor = header.WeekDayTextColor;
header.WeekDayTextColor = tmp;
}
}
}
|
Symbol
|
Description
| | --- | --- | |
DayViewBase.HeaderItemAppearance
|
Gets or sets appearance settings of header items. This is a bindable property.
| |
|
The storage for the Day-based View’s date header appearance settings.
| |
DayViewHeaderItemAppearance.Customizer
|
Gets or sets an object that customizes the view models that provide data for headers. This is a bindable property.
| |
|
If implemented by a class, modifies appearance settings of individual Day View header items.
| |
IDayViewHeaderItemCustomizer.Customize(DayViewHeaderItemViewModel)
|
Modifies appearance settings of an individual Day View header item.
| |
DayViewHeaderItemViewModel
|
The storage for appearance settings values of an individual Day View header item’s representation.
|
System.Object DevExpress.Maui.Scheduler.Internal.NotifyPropertyChangedBase ItemViewModel HeaderItemViewModel DayViewHeaderItemViewModel
Yield<DayViewHeaderItemViewModel>()
YieldIfNotNull<DayViewHeaderItemViewModel>()
See Also