GestureRecognizer.CanBeDoubleTap(PointerPoint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Identifies whether a tap can still be interpreted as the second tap of a double tap gesture.
public:
virtual bool CanBeDoubleTap(PointerPoint ^ value) = CanBeDoubleTap;
bool CanBeDoubleTap(PointerPoint const& value);
public bool CanBeDoubleTap(PointerPoint value);
function canBeDoubleTap(value)
Public Function CanBeDoubleTap (value As PointerPoint) As Boolean
Parameters
- value
- PointerPoint
The last input pointer.
Returns
bool
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.
Applies to
See also
- Input and interactions
- User interaction mode sample
- Focus visuals sample
- Input: Device capabilities sample
- Input: Simplified ink sample
- Input: Windows 8 gestures sample
- Input: XAML user input events sample
- XAML scrolling, panning, and zooming sample
- DirectX touch input sample
- Input: Manipulations and gestures (C++) sample
- Input: Touch hit testing sample
- Input source identification sample
- Touch injection sample
- Win32 touch hit-testing sample