ContentElement.PreviewTouchDown ContentElement.PreviewTouchDown ContentElement.PreviewTouchDown ContentElement.PreviewTouchDown Event


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

 event EventHandler<System::Windows::Input::TouchEventArgs ^> ^ PreviewTouchDown;
public event EventHandler<System.Windows.Input.TouchEventArgs> PreviewTouchDown;
member this.PreviewTouchDown : EventHandler<System.Windows.Input.TouchEventArgs> 
Public Custom Event PreviewTouchDown 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 PreviewTouchDownEvent
路由策略Routing strategy 建立Tunneling
Delegate - 委派Delegate 型別 EventHandler<TEventArgs>TouchEventArgsEventHandler<TEventArgs> of type TouchEventArgs.