Mouse.AddGotMouseCaptureHandler(DependencyObject, MouseEventHandler) 方法

定义

GotMouseCapture 附加事件添加处理程序。

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)

参数

element
DependencyObject

侦听此事件的 UIElementContentElement

handler
MouseEventHandler

事件处理程序。

适用于