Прочитај на енглеском Уреди

Делите путем


InputManager.PushMenuMode(PresentationSource) Method

Definition

Called by components to enter menu mode.

C#
public void PushMenuMode(System.Windows.PresentationSource menuSite);

Parameters

menuSite
PresentationSource

The menu to enter.

Exceptions

menuSite is null.

Remarks

A component calls this method to enter the input manager's menu mode. The menuSite gets privileged access to window messages. Calling this method causes the internal count of open menus to increment and sets the IsInMenuMode property to true, if this is the first menu to open.

Applies to

Производ Верзије
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10