Mouse.AddPreviewMouseDownHandler(DependencyObject, MouseButtonEventHandler) Methode

Definition

Fügt einen Handler für das angefügte PreviewMouseDown -Ereignis hinzu.Adds a handler for the PreviewMouseDown attached event.

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

Parameter

element
DependencyObject

Das UIElement oder das ContentElement , das dieses Ereignis überwacht.The UIElement or ContentElement that listens to this event.

handler
MouseButtonEventHandler

Der Ereignishandler.The event handler.

Gilt für: