A newer version of this page is available. Switch to the current version.

DateNavigator.Holidays Property

Gets or sets a collection of custom holidays. This is a dependency property.

Namespace: DevExpress.Xpf.Editors.DateNavigator

Assembly: DevExpress.Xpf.Core.v18.2.dll


public IList<DateTime> Holidays { get; set; }

Property Value

Type Description

The list of the DateTime objects specifying holiday dates.


Use the Holidays property to populate the collection of holidays. The DateNavigator control shows corresponding dates in red, if the DateNavigator.HighlightHolidays property is set to true.


To override the Holidays setting and treat a certain date as working day, add a date to the DateNavigator.ExactWorkdays collection.


See Also