Bagikan melalui


Mouse.AddMouseDownHandler(DependencyObject, MouseButtonEventHandler) Metode

Definisi

Menambahkan handler untuk kejadian terlampir 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)

Parameter

element
DependencyObject

UIElement atau ContentElement yang mendengarkan peristiwa ini.

handler
MouseButtonEventHandler

Penanganan aktivitas.

Berlaku untuk