UIElement.TouchDown 事件

定义

当悬停在此元素上方的手指触摸屏幕时发生。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) 

注解

默认情况下,在手指触摸屏幕并移动之前,不会发生 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 TouchDownEvent
路由策略Routing strategy 冒泡Bubbling
委托Delegate EventHandler<TEventArgs>类型TouchEventArgsEventHandler<TEventArgs> of type TouchEventArgs.

适用于

另请参阅