Partilhar via


ContextMenuService.AddContextMenuClosingHandler Método

Definição

Adiciona um manipulador ao evento anexado ContextMenuClosing.

public:
 static void AddContextMenuClosingHandler(System::Windows::DependencyObject ^ element, System::Windows::Controls::ContextMenuEventHandler ^ handler);
public static void AddContextMenuClosingHandler (System.Windows.DependencyObject element, System.Windows.Controls.ContextMenuEventHandler handler);
static member AddContextMenuClosingHandler : System.Windows.DependencyObject * System.Windows.Controls.ContextMenuEventHandler -> unit
Public Shared Sub AddContextMenuClosingHandler (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 adicionado.

Aplica-se a