Compartir vía


Mouse.AddMouseDownHandler(DependencyObject, MouseButtonEventHandler) Método

Definición

Agrega un controlador para el evento adjunto MouseDown.

public:
 static void AddMouseDownHandler(System::Windows::DependencyObject ^ element, System::Windows::Input::MouseButtonEventHandler ^ handler);
public static void AddMouseDownHandler (System.Windows.DependencyObject element, System.Windows.Input.MouseButtonEventHandler handler);
static member AddMouseDownHandler : System.Windows.DependencyObject * System.Windows.Input.MouseButtonEventHandler -> unit
Public Shared Sub AddMouseDownHandler (element As DependencyObject, handler As MouseButtonEventHandler)

Parámetros

element
DependencyObject

Objeto UIElement o ContentElement que escucha este evento.

handler
MouseButtonEventHandler

Controlador de eventos.

Se aplica a