Version

PressAndHoldGesture Event

Fired when the user performs a press and tap gesture via a touch input digitizer.
Syntax
'Declaration
 
Public Event PressAndHoldGesture As PressAndHoldGestureHandler
public event PressAndHoldGestureHandler PressAndHoldGesture
Event Data

The event handler receives an argument of type PressAndHoldGestureEventArgs containing data related to this event. The following PressAndHoldGestureEventArgs properties provide information specific to this event.

PropertyDescription
EnablePanning Returns or sets a boolean value indicating whether the PanGesture event will be allowed to occur if the user changes position on the touch surface before losing contact.
Gesture Returns a constant identifying the gesture which triggered this event.
Handled (Inherited from Infragistics.Win.Touch.GestureEventArgs)Returns or sets a boolean value indicating whether the event has been handled.
Location Returns the location of the touch point at which this gesture occurred, expressed in client coordinates.
SendMouseDown Returns or sets a boolean value indicating whether the control's MouseDown event is raised immediately after execution returns from the firing of this event.
ShowIndicator Returns or sets a boolean value indicating whether a PressAndHoldIndicatorUIElement is displayed while the press and hold gesture is in progress.
TimeElapsed Returns the time elapsed, in milliseconds, since the user began the press and hold gesture, or zero if this event signifies the beginning of the gesture.
Remarks

The press-and-hold gesture occurs when the user makes contact with the touch surface without moving or releasing for a period of time greater than or equal to the value of the PressAndHoldDelay property of the GestureQueryStatusEventArgs class.

An application typically uses this event to display a context menu.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also