Sdílet prostřednictvím


Mouse.AddPreviewMouseWheelHandler Metoda

Definice

Přidá obslužnou rutinu pro připojenou PreviewMouseWheel událost.

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)

Parametry

element
DependencyObject

ContentElement NeboUIElement, který naslouchá této události.

handler
MouseWheelEventHandler

Obslužná rutina události.

Platí pro