PinchContactPoints Class

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.

System.Object
  System.Windows.Input.PinchContactPoints

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

public sealed class PinchContactPoints

The PinchContactPoints type exposes the following members.

  NameDescription
Public propertyCenterGets the center between the primary and secondary contact points.
Public propertyPrimaryContactGets the primary contact point.
Public propertySecondaryContactGets the current secondary contact point.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

Windows Phone OS

Supported in: 8.1, 8.0

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:
© 2017 Microsoft