Back to Devexpress

DateNavigator.Holidays Property

wpf-devexpress-dot-xpf-dot-editors-dot-datenavigator-dot-datenavigator-7c551b96.md

latest1.9 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public IList<DateTime> Holidays { get; set; }
vb
Public Property Holidays As IList(Of Date)

Property Value

TypeDescription
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.

See Also

DateNavigator Class

DateNavigator Members

DevExpress.Xpf.Editors.DateNavigator Namespace