共用方式為


RibbonControlService.AddDismissPopupHandler 方法

定義

加入 DismissPopup 附加事件的處理常式。

public:
 static void AddDismissPopupHandler(System::Windows::DependencyObject ^ element, System::Windows::Controls::Ribbon::RibbonDismissPopupEventHandler ^ handler);
public static void AddDismissPopupHandler (System.Windows.DependencyObject element, System.Windows.Controls.Ribbon.RibbonDismissPopupEventHandler handler);
static member AddDismissPopupHandler : System.Windows.DependencyObject * System.Windows.Controls.Ribbon.RibbonDismissPopupEventHandler -> unit
Public Shared Sub AddDismissPopupHandler (element As DependencyObject, handler As RibbonDismissPopupEventHandler)

參數

element
DependencyObject

要加入附加事件的物件。

handler
RibbonDismissPopupEventHandler

事件處理常式。

適用於