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

CalendarControlBase.SpecialDateProvider Property

Allows you to assign an ICalendarSpecialDateProvider object that can mark certain dates as “special” to highlight them in a custom manner, as specified by the dedicated appearance settings of the CalendarControlBase.CalendarAppearance object.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(null)]
[DXCategory("Behavior")]
public ICalendarSpecialDateProvider SpecialDateProvider { get; set; }

#Property Value

Type Default Description
DevExpress.XtraEditors.Controls.ICalendarSpecialDateProvider null

An object that marks certain dates as “special”.

#Remarks

You can mark certain dates in the Calendar as “special” by using one of the following approaches:

  • Handle the CalendarControlBase.SpecialCalendarDate event.
  • Implement an ICalendarSpecialDateProvider object, which marks specific dates as “special”, and assign this object to the SpecialDateProvider property.

“Special” dates are painted using the appearance properties provided by the CalendarControlBase.CalendarAppearance object:

  • DayCellSpecial
  • DayCellSpecialDisabled
  • DayCellSpecialHighlighted
  • DayCellSpecialInactive
  • DayCellSpecialPressed
  • DayCellSpecialSelected
See Also