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

DataFormDateItem.PickerCustomMonthCellAppearance Event

Allows you to customize the appearance of the month cells in the default picker.

Namespace: DevExpress.Maui.DataForm

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

#Declaration

C#
public event EventHandler<CustomSelectableCellAppearanceEventArgs> PickerCustomMonthCellAppearance

#Event Data

The PickerCustomMonthCellAppearance 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.DataForm;

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