PinchManipulation Class

Contains information about a pinch-stretch gesture.

System.Object
  System.Windows.Input.PinchManipulation

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

public sealed class PinchManipulation

The PinchManipulation type exposes the following members.

  NameDescription
Public propertyCumulativeScaleGets the ratio of the current distance between the contact points and the distance between the original contact points.
Public propertyCurrentGets the current pinch contact points.
Public propertyDeltaScaleGets the ratio of the current distance between the contact points and the distance between the previous contact points.
Public propertyOriginalGets the original pinch contact points.
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:
© 2015 Microsoft