共用方式為


Mouse.AddPreviewMouseWheelHandler 方法

定義

加入 PreviewMouseWheel 附加事件的處理常式。

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

參數

element
DependencyObject

接聽這個事件的 UIElementContentElement

handler
MouseWheelEventHandler

事件處理常式。

適用於