Sdílet prostřednictvím


Mouse.AddPreviewMouseDownHandler Metoda

Definice

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

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)

Parametry

element
DependencyObject

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

handler
MouseButtonEventHandler

Obslužná rutina události.

Platí pro