RepositoryItemDateEdit.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 RepositoryItemDateEdit.AppearanceCalendar object.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[DefaultValue(null)]
[DXCategory("Appearance")]
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 dropdown Calendar as “special” by using one of the following approaches:
- Handle the RepositoryItemDateEdit.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 RepositoryItemDateEdit.AppearanceCalendar object:
- DayCellSpecial
- DayCellSpecialDisabled
- DayCellSpecialHighlighted
- DayCellSpecialInactive
- DayCellSpecialPressed
- DayCellSpecialSelected
See Also