共用方式為


ContextMenuService.RemoveContextMenuOpeningHandler 方法

定義

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

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

參數

element
DependencyObject

接聽這個事件的 UIElementContentElement

handler
ContextMenuEventHandler

要移除的事件處理常式。

適用於