Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
We recommend using Visual Studio 2017

Gesture Class

Contains static methods for performing Touch gestures.

System.Object
  Microsoft.VisualStudio.TestTools.UITesting.Gesture

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)

public sealed class Gesture

The Gesture type exposes the following members.

  NameDescription
Public methodStatic memberDoubleTap(Point)Perform a double tap gesture.
Public methodStatic memberDoubleTap(UITestControl) Perform a double tap gesture.
Public methodStatic memberDoubleTap(UITestControl, Point)Perform a double tap gesture.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodStatic memberFlick(Point, UInt32, UITestGestureDirection, UInt32)
Public methodStatic memberFlick(Point, UInt32, Double, UInt32)
Public methodStatic memberFlick(UITestControl, Point, UInt32, UITestGestureDirection, UInt32)
Public methodStatic memberFlick(UITestControl, Point, UInt32, Double, UInt32)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberPinch(Point, Point, UInt32)Perform a pinch gesture which essentially is used for three types of interactions: optical zoom, resizing, and semantic zoom.
Public methodStatic memberPinch(UITestControl, Point, Point, UInt32)Perform a pinch gesture which essentially is used for three types of interactions: optical zoom, resizing, and semantic zoom.
Public methodStatic memberPressAndHold(Point)Perform a press and hold gesture which is mainly associated with activating a tooltip or a context menu.
Public methodStatic memberPressAndHold(UITestControl)Perform a press and hold gesture which is mainly associated with activating a tooltip or a context menu.
Public methodStatic memberPressAndHold(UITestControl, Point)Perform a press and hold gesture which is mainly associated with activating a tooltip or a context menu.
Public methodStatic memberPressAndHold(UITestControl, Point, Int32)Perform a press and hold gesture which is mainly associated with activating a tooltip or a context menu.
Public methodStatic memberSlide(Point, Point)Perform a slide gesture. A slide gesture is used primarily for panning interactions but can also be used for moving, drawing, or writing.
Public methodStatic memberSlide(Point, Point, UInt32)
Public methodStatic memberSlide(UITestControl, Point, Point)Perform a slide gesture. A slide gesture is used primarily for panning interactions but can also be used for moving, drawing, or writing.
Public methodStatic memberSlide(UITestControl, Point, Point, UInt32)
Public methodStatic memberStretch(Point, Point, UInt32)Perform a stretch gesture which essentially is used for three types of interactions: optical zoom, resizing, and semantic zoom.
Public methodStatic memberStretch(UITestControl, Point, Point, UInt32)Perform a stretch gesture which essentially is used for three types of interactions: optical zoom, resizing, and semantic zoom.
Public methodStatic memberSwipe(UITestControl, UITestGestureDirection)Perform a swipe gesture which is a quick slide of a finger for a short distance. For example, swipe across an email in your inbox to select it or swipe down on a tile to select it.
Public methodStatic memberSwipe(UITestControl, Double)Perform a swipe gesture which is a quick slide of a finger for a short distance. For example, swipe across an email in your inbox to select it or swipe down on a tile to select it.
Public methodStatic memberSwipe(UITestControl, UITestGestureDirection, UInt32)
Public methodStatic memberSwipe(UITestControl, Double, UInt32)
Public methodStatic memberTap(Point) Perform a tap gesture.
Public methodStatic memberTap(UITestControl) Perform a tap gesture.
Public methodStatic memberTap(UITestControl, Point) Perform a tap gesture.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodStatic memberTurn(UITestControl, Double)Perform a turn gesture.
Public methodStatic memberTurn(Point, Point, Double)Perform a turn gesture.
Public methodStatic memberTurn(UITestControl, Point, Point, Double)Perform a turn gesture.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: