Back to Devexpress

DateEdit.PickerCustomMonthCellAppearance Event

maui-devexpress-dot-maui-dot-editors-dot-dateedit-b3de0105.md

latest2.2 KB
Original Source

DateEdit.PickerCustomMonthCellAppearance Event

Allows you to customize months in the default picker.

Namespace : DevExpress.Maui.Editors

Assembly : DevExpress.Maui.Editors.dll

NuGet Package : DevExpress.Maui.Editors

Declaration

csharp
public event EventHandler<CustomSelectableCellAppearanceEventArgs> PickerCustomMonthCellAppearance

Event Data

The PickerCustomMonthCellAppearance 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:DateEdit PickerCustomMonthCellAppearance="CustomMonthCellAppearance"/>

See Also

DateEdit Class

DateEdit Members

DevExpress.Maui.Editors Namespace