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

要删除的事件处理程序。

适用于