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

IsTodayHighlightedProperty

Metadata properties set to true

None

<DatePicker IsTodayHighlighted="bool"/>

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

<DatePicker IsDropDownOpen="True"
            IsTodayHighlighted="False" 
            DisplayDate="7/7/09"/>

.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Return to top
Show:
© 2016 Microsoft