ContextMenuService.RemoveContextMenuClosingHandler Metod

Definition

Tar bort en hanterare för den anslutna ContextMenuClosing händelsen.

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)

Parametrar

element
DependencyObject

Eller UIElementContentElement som lyssnar på den här händelsen.

handler
ContextMenuEventHandler

Händelsehanteraren som ska tas bort.

Gäller för