Share via


InputManager.PopMenuMode(PresentationSource) 方法

定义

由组件调用以退出菜单模式。

public:
 void PopMenuMode(System::Windows::PresentationSource ^ menuSite);
public void PopMenuMode (System.Windows.PresentationSource menuSite);
member this.PopMenuMode : System.Windows.PresentationSource -> unit
Public Sub PopMenuMode (menuSite As PresentationSource)

参数

menuSite
PresentationSource

要退出的菜单。

例外

menuSitenull

注解

组件调用此方法以退出输入管理器的菜单模式。 释放 menuSite 对窗口消息的特权访问。

如果这是最后一个要关闭的菜单,则调用此方法会导致打开菜单的内部计数递减并将 属性设置为 IsInMenuModefalse

适用于