Condividi tramite


Mouse.AddMouseDownHandler(DependencyObject, MouseButtonEventHandler) Metodo

Definizione

Aggiunge un gestore per l'evento associato 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)

Parametri

element
DependencyObject

Oggetto UIElement o ContentElement in ascolto su questo evento.

handler
MouseButtonEventHandler

Gestore eventi.

Si applica a