Version

TimeElapsed Property

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.
Syntax
'Declaration
 
Public ReadOnly Property TimeElapsed As Integer
public int TimeElapsed {get;}
Remarks

The PressAndHoldGesture event always fires twice, unless the Handled returns true. The first firing occurs when the user has pressed and held the touch surface, without moving, for a period of time equal to the PressAndHoldDelay property. The TimeElapsed property returns zero in this case.

The second firing occurs when the user loses contact with the touch surface. The value of this property contains the amount of time the user maintained contact with the touch surface after the first firing of the event.

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