Skip to main content

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

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