IInputElement.AddHandler(RoutedEvent, Delegate) Método

Definición

Agrega un controlador de eventos enrutados para un evento enrutado concreto a un elemento.Adds a routed event handler for a specific routed event to an element.

public:
 void AddHandler(System::Windows::RoutedEvent ^ routedEvent, Delegate ^ handler);
public void AddHandler (System.Windows.RoutedEvent routedEvent, Delegate handler);
abstract member AddHandler : System.Windows.RoutedEvent * Delegate -> unit
Public Sub AddHandler (routedEvent As RoutedEvent, handler As Delegate)

Parámetros

routedEvent
RoutedEvent

Identificador del evento enrutado que se está controlando.The identifier for the routed event that is being handled.

handler
Delegate

Referencia a la implementación del controlador.A reference to the handler implementation.

Comentarios

Esta interfaz no está pensada para la implementación pública.This interface is not intended for public implementation. Para obtener más información, vea la sección Comentarios de la IInputElement interfaz.For more information, see remarks for the IInputElement interface.

Se aplica a

Consulte también