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,如果這是最後一個要關閉的功能表。

適用於