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

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

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

#Property Value

Type Description
IList<DateTime>

The list of the DateTime objects specifying holiday dates.

#Remarks

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.

Tip

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

DateNavigator

See Also