語言

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

那個 UIElement 會監聽這個事件的或 ContentElement 。

handler
ContextMenuEventHandler

事件處理程式將被移除。

適用於