Back to Devexpress

MonthViewHeaderItemAppearance Class

maui-devexpress-dot-maui-dot-scheduler-0bbf4e1a.md

latest4.5 KB
Original Source

MonthViewHeaderItemAppearance Class

The storage for the Month View’s header items appearance settings.

Namespace : DevExpress.Maui.Scheduler

Assembly : DevExpress.Maui.Scheduler.dll

NuGet Package : DevExpress.Maui.Scheduler

Declaration

csharp
public class MonthViewHeaderItemAppearance :
    HeaderItemAppearance

The following members return MonthViewHeaderItemAppearance objects:

Remarks

The style configures the following header types:

  1. Regular Header Item
  2. Today Header Item

The View provides the following options that configure the header’s appearance:

Example

This example uses the month view header item style and its customizer to modify the appearance of header items.

xml
<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>
csharp
class MonthViewHeaderItemCustomizer : IMonthViewHeaderItemCustomizer {
    public void Customize(MonthViewHeaderItemViewModel header) {
        if (header.IsToday) {
            var tmp = header.BackgroundColor;
            header.BackgroundColor = header.WeekDayTextColor;
            header.WeekDayTextColor = tmp;
        }
    }
}

|

Symbol

|

Description

| | --- | --- | |

DayViewBase.HeaderItemAppearance

|

Gets or sets the apperance properties of the month view’s headers. This is a bindable property.

| |

MonthViewHeaderItemAppearance

|

The storage for the Month View’s header items appearance settings.

| |

MonthViewHeaderItemAppearance.Customizer

|

Gets or sets an object that customizes the appearance of an individual month view header item. This is a bindable property.

| |

IMonthViewHeaderItemCustomizer

|

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.

| |

MonthViewHeaderItemViewModel

|

The storage for appearance settings values of an individual month view header item’s representation.

|

Implements

INotifyPropertyChanged

IElementController

Inheritance

System.Object BindableObject Element AppearanceBase HeaderItemAppearance MonthViewHeaderItemAppearance

Extension Methods

Yield<MonthViewHeaderItemAppearance>()

YieldIfNotNull<MonthViewHeaderItemAppearance>()

See Also

MonthViewHeaderItemAppearance Members

DevExpress.Maui.Scheduler Namespace