Back to Devexpress

DXCalendar.CustomMonthCellAppearance Event

maui-devexpress-dot-maui-dot-editors-dot-dxcalendar-b8e1d81e.md

latest2.1 KB
Original Source

DXCalendar.CustomMonthCellAppearance Event

Allows you to customize months.

Namespace : DevExpress.Maui.Editors

Assembly : DevExpress.Maui.Editors.dll

NuGet Package : DevExpress.Maui.Editors

Declaration

csharp
public event EventHandler<CustomSelectableCellAppearanceEventArgs> CustomMonthCellAppearance

Event Data

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

PropertyDescription
DateGets the processed day.
EllipseBackgroundColorGets or sets the color of the processed day’s selection ellipse.
IsSelectedGets whether the processed day is selected.
IsTrailingGets 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.

cs
using DevExpress.Maui.Editors;

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

See Also

DXCalendar Class

DXCalendar Members

DevExpress.Maui.Editors Namespace