Partilhar via


ContextMenuService.RemoveContextMenuClosingHandler Método

Definição

Remove um manipulador para o evento anexado 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)

Parâmetros

element
DependencyObject

O UIElement ou ContentElement que escuta esse evento.

handler
ContextMenuEventHandler

O manipulador de eventos a ser removido.

Aplica-se a