Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

MonthViewCellViewModel Class

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

Namespace: DevExpress.Maui.Scheduler

Assembly: DevExpress.Maui.Scheduler.dll

NuGet Package: DevExpress.Maui.Scheduler

#Declaration

C#
public class MonthViewCellViewModel :
    CellViewModel

#Remarks

The Scheduler View uses this class is the following occurrences:

This view model provides the following settings that you can customize:

Day View Cell View Model's Settable Properties

#Example

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

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

Scheduler - Month Cell Appearance

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.

#Inheritance

System.Object
DevExpress.Maui.Scheduler.Internal.NotifyPropertyChangedBase
ItemViewModel
CellViewModel
MonthViewCellViewModel
See Also