Comparteix a través de


ContextMenuService.AddContextMenuClosingHandler Método

Definición

Agrega un controlador para el evento adjunto 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

Objeto UIElement o ContentElement que escucha este evento.

handler
ContextMenuEventHandler

Controlador de eventos que se va a agregar.

Se aplica a