UIElement.PreviewTouchDown UIElement.PreviewTouchDown UIElement.PreviewTouchDown 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附加属性设置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 EventHandler<TEventArgs>类型TouchEventArgsEventHandler<TEventArgs> of type TouchEventArgs.