ContentElement.TouchDown ContentElement.TouchDown ContentElement.TouchDown ContentElement.TouchDown Event

定義

手指在這個項目上方且在螢幕上觸控時發生。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) 

備註

根據預設, 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附加屬性設定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.

適用於

另請參閱