Bagikan melalui


Mouse.AddMouseWheelHandler(DependencyObject, MouseWheelEventHandler) Metode

Definisi

Menambahkan handler untuk kejadian terlampir MouseWheel .

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

Parameter

element
DependencyObject

UIElement atau ContentElement yang mendengarkan peristiwa ini.

handler
MouseWheelEventHandler

Penanganan aktivitas.

Berlaku untuk