Back to Devexpress

RepositoryItemDateEdit.SpecialDateProvider Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemdateedit-b18f59b6.md

latest2.7 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(null)]
[DXCategory("Appearance")]
public ICalendarSpecialDateProvider SpecialDateProvider { get; set; }
vb
<DefaultValue(Nothing)>
<DXCategory("Appearance")>
Public Property SpecialDateProvider As ICalendarSpecialDateProvider

Property Value

TypeDefaultDescription
DevExpress.XtraEditors.Controls.ICalendarSpecialDateProvidernull

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

SpecialCalendarDate

AppearanceCalendar

RepositoryItemDateEdit Class

RepositoryItemDateEdit Members

DevExpress.XtraEditors.Repository Namespace