UIElement.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) 


默认情况下,在手指触摸屏幕并移动之前,不会发生 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 附加属性设置为此元素的 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.

Applies to

See also