共用方式為


Stylus.AddPreviewStylusDownHandler 方法

定義

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

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

參數

element
DependencyObject

接聽這個事件的 UIElementContentElement

handler
StylusDownEventHandler

要加入的事件處理常式。

適用於