ContextMenuService.RemoveContextMenuClosingHandler 方法

定義

移除 ContextMenuClosing 附加事件的處理常式。

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

參數

element
DependencyObject

接聽這個事件的 UIElementContentElement

handler
ContextMenuEventHandler

要移除的事件處理常式。

適用於