共用方式為


RibbonMenuButton.OnDismissPopup(RibbonDismissPopupEventArgs) 方法

定義

提供DismissPopup附加事件的類別處理。

protected:
 virtual void OnDismissPopup(System::Windows::Controls::Ribbon::RibbonDismissPopupEventArgs ^ e);
protected virtual void OnDismissPopup (System.Windows.Controls.Ribbon.RibbonDismissPopupEventArgs e);
abstract member OnDismissPopup : System.Windows.Controls.Ribbon.RibbonDismissPopupEventArgs -> unit
override this.OnDismissPopup : System.Windows.Controls.Ribbon.RibbonDismissPopupEventArgs -> unit
Protected Overridable Sub OnDismissPopup (e As RibbonDismissPopupEventArgs)

參數

e
RibbonDismissPopupEventArgs

事件資料。

備註

此方法會關閉功能表下拉式清單,然後將附加事件標示 DismissPopup 為已處理,讓父下拉式清單不會關閉。

適用於