Back to Devexpress

IMonthViewCellCustomizer.Customize(MonthViewCellViewModel) Method

maui-devexpress-dot-maui-dot-scheduler-dot-imonthviewcellcustomizer-dot-customize-x28-devexpress-dot-maui-dot-scheduler-dot-monthviewcellviewmodel-x29.md

latest3.0 KB
Original Source

IMonthViewCellCustomizer.Customize(MonthViewCellViewModel) Method

Modifies appearance settings of an individual Month View cell.

Namespace : DevExpress.Maui.Scheduler

Assembly : DevExpress.Maui.Scheduler.dll

NuGet Package : DevExpress.Maui.Scheduler

Declaration

csharp
void Customize(
    MonthViewCellViewModel cell
)

Parameters

NameTypeDescription
cellMonthViewCellViewModel

Appearance settings of a Month View cell.

|

Example

This example uses the month view cell style and its customizer to modify the cell’s appearance.

xml
<dxs:MonthView.HeaderItemAppearance>
    <dxsch:MonthViewHeaderItemAppearance TodayWeekDayTextColor="#FF8000"/>
    <dxs:MonthViewHeaderItemAppearance.Customizer>
        <views:MonthViewHeaderItemCustomizer/>
    </dxs:MonthViewHeaderItemAppearance.Customizer>
</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

| | --- | --- | |

MonthView.AllDayCellAppearance

|

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

| |

MonthViewCellAppearance

|

The storage for month view cell appearance settings.

| |

MonthViewCellAppearance.Customizer

|

Gets or sets an object that customizes the month view cell’s appearance depending on internal logic. This is a bindable property.

| |

IMonthViewCellCustomizer

|

If implemented by a class, modifies appearance settings of individual Month View cells.

| |

IMonthViewCellCustomizer.Customize(MonthViewCellViewModel)

|

Modifies appearance settings of an individual Month View cell.

| |

MonthViewCellViewModel

|

The storage for the appearance settings values of an individual month view cell.

|

See Also

IMonthViewCellCustomizer Interface

IMonthViewCellCustomizer Members

DevExpress.Maui.Scheduler Namespace