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) 

備註

根據預設,PreviewTouchDownTouchDown 事件都不會發生,直到手指接觸到螢幕並移動為止。By default, the PreviewTouchDown and TouchDown events do not occur until a finger touches the screen and moves. 在螢幕上按手指並保留,而不移動它會導致 Stylus的按住動作行為。Pressing 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 附加屬性] 設定為 [false]。To 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 - 委派Delegate 型別 EventHandler<TEventArgs>TouchEventArgsEventHandler<TEventArgs> of type TouchEventArgs.

適用於

另請參閱