PinchContactPoints Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Contains information about pinch contact points.

Inheritance Hierarchy

System..::.Object
  System.Windows.Input..::.PinchContactPoints

Namespace:  System.Windows.Input
Assembly:  System.Windows (in System.Windows.dll)

Syntax

Public NotInheritable Class PinchContactPoints
public sealed class PinchContactPoints

The PinchContactPoints type exposes the following members.

Properties

  Name Description
Center Gets the center between the primary and secondary contact points.
PrimaryContact Gets the primary contact point.
SecondaryContact Gets the current secondary contact point.

Top

Methods

  Name Description
Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetType Gets the Type of the current instance. (Inherited from Object.)
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

Every time there are two or more fingers touching the screen, it is considered a pinch gesture. The platform will return the best two contact points that represent the pinch gesture and return them as primary and secondary contact points. The very first set of primary/secondary contact points of a pinch gesture is considered the original set. While the pinch gesture is occurring, if all other fingers are raised and only one finger is still touching the screen, it is no longer considered a pinch gesture, but it now transforms to become a drag (or a flick). If any other finger touches the screen again, it triggers a new pinch gesture with a new set of original contact points. All of this can be considered part of one single manipulation (between one ManipulationStarted and ManipulationCompleted event) until all the fingers are raised.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

Thread Safety

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

See Also

Reference

System.Windows.Input Namespace