Mouse.AddMouseWheelHandler(DependencyObject, MouseWheelEventHandler) 方法

定义

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)

参数

element
DependencyObject

侦听此事件的 UIElementContentElement

handler
MouseWheelEventHandler

事件处理程序。

适用于