UIElement.PreviewTouchDown 事件


手指在這個項目上方且在螢幕上觸控時發生。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 附加屬性設為 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 PreviewTouchDownEvent
路由策略Routing strategy 隧道Tunneling
代理人Delegate 型別 EventHandler<TEventArgs>TouchEventArgsEventHandler<TEventArgs> of type TouchEventArgs.