UIElement.TouchDown 事件

定義

手指在這個項目上方且在螢幕上觸控時發生。Occurs when a finger touches the screen while the finger is over this element.

public:
 event EventHandler<System::Windows::Input::TouchEventArgs ^> ^ TouchDown;
public event EventHandler<System.Windows.Input.TouchEventArgs> TouchDown;
member this.TouchDown : EventHandler<System.Windows.Input.TouchEventArgs> 
Public Custom Event TouchDown As EventHandler(Of TouchEventArgs) 

事件類型

EventHandler<TouchEventArgs>

備註

依預設,在 PreviewTouchDown TouchDown 手指觸及畫面並移動之前,並不會發生和事件。By default, the PreviewTouchDown and TouchDown events do not occur until a finger touches the screen and moves. 在螢幕上按手指並按住以不移動,會導致的保存行為 StylusPressing a finger on the screen and holding it without moving it causes the press and hold behavior of a Stylus. 按住不放行為相當於滑鼠右鍵按一下。The press and hold behavior is equivalent to a mouse right-click.

若要使 PreviewTouchDownTouchDown 事件在手指觸控式螢幕幕時立刻發生,請將此專案的 Stylus.IsPressAndHoldEnabled 附加屬性設為 falseTo cause the PreviewTouchDown and TouchDown events to occur as soon as a finger touches the screen, set the Stylus.IsPressAndHoldEnabled attached property to false for this element.

路由事件資訊Routed Event Information

識別碼欄位Identifier field TouchDownEvent
路由策略Routing strategy 鼓 泡Bubbling
代理人Delegate 型別 EventHandler<TEventArgs>TouchEventArgsEventHandler<TEventArgs> of type TouchEventArgs.

適用於

另請參閱