Back to Devexpress

IMonthViewHeaderItemCustomizer.Customize(MonthViewHeaderItemViewModel) Method

mobilecontrols-devexpress-dot-xamarinforms-dot-scheduler-dot-imonthviewheaderitemcustomizer-dot-customize-x28-devexpress-dot-xamarinforms-dot-scheduler-dot-monthviewheaderitemviewmodel-x29.md

latest4.2 KB
Original Source

IMonthViewHeaderItemCustomizer.Customize(MonthViewHeaderItemViewModel) Method

Modifies appearance settings of an individual Month View header item.

Namespace : DevExpress.XamarinForms.Scheduler

Assembly : DevExpress.XamarinForms.Scheduler.dll

NuGet Package : DevExpress.XamarinForms.Scheduler

Declaration

csharp
void Customize(
    MonthViewHeaderItemViewModel header
)

Parameters

NameTypeDescription
headerMonthViewHeaderItemViewModel

Appearance settings of a Month View header item.

|

Example

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

xml
<dxs:MonthView.HeaderItemStyle>
    <dxs:MonthViewHeaderItemStyle BorderColor="#808080"
                                  BorderThickness="2,0,0,2">
        <dxs:MonthViewHeaderItemStyle.TodayWeekDayTextStyle>
            <dxs:TextStyle Color="#ff8000" FontAttributes="Bold"/>
        </dxs:MonthViewHeaderItemStyle.TodayWeekDayTextStyle>
        <dxs:MonthViewHeaderItemStyle.Customizer>
            <views:MonthViewHeaderItemCustomizer/>
        </dxs:MonthViewHeaderItemStyle.Customizer>
    </dxs:MonthViewHeaderItemStyle>
</dxs:MonthView.HeaderItemStyle>
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.HeaderItemStyle

|

Gets or sets appearance settings of header items.

| |

MonthViewHeaderItemStyle

|

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

| |

MonthViewHeaderItemStyle.Customizer

|

Gets or sets an object that customizes the appearance of an individual month view header item.

| |

IMonthViewHeaderItemCustomizer

|

The interface that should implement a class that 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.

|

See Also

IMonthViewHeaderItemCustomizer Interface

IMonthViewHeaderItemCustomizer Members

DevExpress.XamarinForms.Scheduler Namespace