All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DateNavigatorRequestCellAppearanceEventArgs.CalendarView Property

Gets the calendar view.

Namespace: DevExpress.Xpf.Editors.DateNavigator

Assembly: DevExpress.Xpf.Core.v21.1.dll

Declaration

public DateNavigatorCalendarView CalendarView { get; }

Property Value

Type Description
DateNavigatorCalendarView

A calendar view.

Available values:

Name Description
Month

Applies monthly calendars within the DateNavigator control.

DateNavigator-MonthView

Year

Applies yearly calendars within the DateNavigator control.

DateNavigator-YearView

Years

A calendar of the DateNavigator control that displays several years.

DateNavigator-YearsView

YearsRange

A calendar of the DateNavigator control that displays year ranges (each year range is ten years).

DateNavigator-YearRangeView

Remarks

private void DateNav_RequestCellAppearance(object sender, DevExpress.Xpf.Editors.DateNavigator.DateNavigatorRequestCellAppearanceEventArgs args) {
    DateTime day = new DateTime(2020, 9, 25);
      if (args.DateTime.Date == day && args.CalendarView == DevExpress.Xpf.Editors.DateNavigator.DateNavigatorCalendarView.Month) {
          args.Appearance.Background = Brushes.Blue;
          args.Appearance.Foreground = Brushes.White;
          args.CacheValue=true;
      }
}

DateNavigator Appearance - CalendarView

See Also