Bagikan melalui


Mouse.AddMouseEnterHandler(DependencyObject, MouseEventHandler) Metode

Definisi

Menambahkan handler untuk kejadian terlampir MouseEnter .

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

Parameter

element
DependencyObject

UIElement atau ContentElement yang mendengarkan peristiwa ini.

handler
MouseEventHandler

Penanganan aktivitas.

Berlaku untuk