Share via

Gesture.Pinch Method (Point, Point, UInt32)

Perform a pinch gesture which essentially is used for three types of interactions: optical zoom, resizing, and semantic zoom.

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


Public Shared Sub Pinch ( _
    point1 As Point, _
    point2 As Point, _
    distanceToMove As UInteger _
public static void Pinch(
    Point point1,
    Point point2,
    uint distanceToMove
static void Pinch(
    Point point1, 
    Point point2, 
    unsigned int distanceToMove
static member Pinch : 
        point1:Point * 
        point2:Point * 
        distanceToMove:uint32 -> unit
public static function Pinch(
    point1 : Point, 
    point2 : Point, 
    distanceToMove : uint


  • point1
    Type: Point

    A point on screen at which user places one of two fingers to perform a pinch gesture.

  • point2
    Type: Point

    A point on screen at which user places the second finger to perform a pinch gesture.

  • distanceToMove
    Type: System.UInt32

    The distance each finger moves toward each other in pixels.


Playback of a pinch gesture depends on screen resolution. If the resolution changes, the parameters may have to be changed.

.NET Framework Security

See Also


Gesture Class

Pinch Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace