Skip to main content

DXCalendar.CustomMonthCellAppearance Event

Allows you to customize months.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

Declaration

public event EventHandler<CustomSelectableCellAppearanceEventArgs> CustomMonthCellAppearance

Event Data

The CustomMonthCellAppearance event's data class is CustomSelectableCellAppearanceEventArgs. The following properties provide information specific to this event:

Property Description
Date Gets the processed day.
EllipseBackgroundColor Gets or sets the color of the processed day’s selection ellipse.
IsSelected Gets whether the processed day is selected.
IsTrailing Gets whether the processed day belongs to the previous or next month.

Example

The example below shows how to apply a custom appearance to the current month in the calendar.

Custom Month Appearance in Calendar

using DevExpress.Maui.Editors;

private void CustomMonthCellAppearance(object sender, CustomSelectableCellAppearanceEventArgs e) {
    if(e.Date.Month == DateTime.Now.Month)
        e.TextColor = Color.FromHex("F44848");
}
<dxe:DXCalendar CustomMonthCellAppearance="CustomMonthCellAppearance"/>
See Also