Expand Minimize

GestureRecognizer.CanBeDoubleTap | canBeDoubleTap method

Applies to Windows and Windows Phone

Identifies whether a tap can still be interpreted as the second tap of a double tap gesture.

Syntax


public bool CanBeDoubleTap(
  PointerPoint value
)

Parameters

value

Type: PointerPoint

The last input pointer.

Return value

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

True if a UI element supports the double tap gesture and the time threshold to complete the gesture has not been crossed; otherwise false.

Remarks

This method supports GestureRecognizer object pool management, where GestureRecognizer objects are dynamically assigned to a set of UI elements.

Specifically, GestureRecognizer objects can be recycled for UI elements that do not support or can no longer process a double tap gesture. For example, if CanBeDoubleTap returns true for the most recent PointerPoint, it’s not safe to recycle the GestureRecognizer because a double tap is still a viable interaction based on subsequent input. If CanBeDoubleTap returns false, the GestureRecognizer can be safely recycled.

This method is not required if GestureRecognizer object pool management is not implemented.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.UI.Input
Windows::UI::Input [C++]

Metadata

Windows.winmd

See also

GestureRecognizer

 

 

Show:
© 2014 Microsoft