'Declaration Public Event ZoomGesture As ZoomGestureHandler
public event ZoomGestureHandler ZoomGesture
The event handler receives an argument of type ZoomGestureEventArgs containing data related to this event. The following ZoomGestureEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Center | Returns the location of the point which lies midway between the two contact points for this gesture. |
Distance | Returns the distance between the gesture's contact points for this event, expressed in pixels. |
Gesture | Returns a constant identifying the gesture which triggered this event. |
Handled (Inherited from Infragistics.Win.Touch.GestureEventArgs) | Returns or sets a boolean value indicating whether the event has been handled. |
Origin | Returns the original contact point with the surface. Can be used to determine if the gesture was zoom or pinch. |
A zoom gesture occurs when the user makes contact with the touch surface with two fingers, and moves the fingers apart (zoom) or toward each other (pinch).
The location of the zoom gesture is the point that lies midway between the two fingers. Applications that process the zoom factor can use the Distance property of the event arguments.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2