共用方式為


Mouse.AddQueryCursorHandler(DependencyObject, QueryCursorEventHandler) 方法

定義

加入 QueryCursor 附加事件的處理常式。

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

參數

element
DependencyObject

接聽這個事件的 UIElementContentElement

handler
QueryCursorEventHandler

事件處理常式。

適用於