Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DatePicker.IsTodayHighlighted Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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:
© 2017 Microsoft