InputManager.IsInMenuMode Property

.NET Framework (current version)

Gets a value that indicates whether this ComponentDispatcher is in menu mode.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public bool IsInMenuMode { get; }

Property Value

Type: System.Boolean

true if this ComponentDispatcher is in menu mode; otherwise, false.

The IsInMenuMode property returns true if any menus are open, and it returns false if no menus are open.

.NET Framework
Available since 4.0
Return to top