IsTodayHighlighted Property

DatePicker.IsTodayHighlighted Property


Gets or sets a value that indicates whether the current date will be highlighted.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public bool IsTodayHighlighted { get; set; }

Property Value

Type: System.Boolean

true if the current date is highlighted; otherwise, false. The default is true.

This property affects the Calendar of the DatePicker. For more information, see the Calendar.IsTodayHighlighted property.

Identifier field


Metadata properties set to true


<DatePicker IsTodayHighlighted="bool"/>

The following example creates a DatePicker that does not highlight the current date.

.NET Framework
Available since 4.0
Available since 2.0
Return to top
© 2015 Microsoft