Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MenuItem::IsHighlighted Property

Gets a value that indicates whether a MenuItem is highlighted.

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

[BrowsableAttribute(false)]
public:
property bool IsHighlighted {
	bool get ();
	protected: void set (bool value);
}

Property Value

Type: System::Boolean
true if a MenuItem is highlighted; otherwise, false. The default is false.

Identifier field

IsHighlightedProperty

Metadata properties set to true

None

Starting with the .NET Framework version 3.0 Service Pack 1, the IsHighlighted property has a protected setter. To use this functionality, your application should target the .NET Framework version 3.5.  For more information, see .NET Framework Versions and Dependencies.

The following example shows how to determine whether a menu item is highlighted.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft