共用方式為


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

事件處理常式。

適用於