Mouse.AddGotMouseCaptureHandler(DependencyObject, MouseEventHandler) Metod

Definition

Lägger till en hanterare för den anslutna GotMouseCapture händelsen.

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

Parametrar

element
DependencyObject

Eller UIElementContentElement som lyssnar på den här händelsen.

handler
MouseEventHandler

Händelsehanteraren.

Gäller för