Skip to main content

PinchEventArgs Class

Definition​

Namespace:Avalonia.Input
Assembly:Avalonia.Base
Package:Avalonia
public class PinchEventArgs

Inheritance: EventArgs -> RoutedEventArgs -> PinchEventArgs

Constructors​

NameDescription
PinchEventArgs (2 overloads)No summary available.

PinchEventArgs overloads​

PinchEventArgs Constructor​

public PinchEventArgs(double scale, Avalonia.Point scaleOrigin)
Parameters​

scale double

scaleOrigin Avalonia.Point

PinchEventArgs Constructor​

public PinchEventArgs(double scale, Avalonia.Point scaleOrigin, double angle, double angleDelta)
Parameters​

scale double

scaleOrigin Avalonia.Point

angle double

angleDelta double

Properties​

NameDescription
AngleGets the angle of the pinch gesture, in degrees.
AngleDeltaGets the difference from the previous and current pinch angle.
HandledGets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs.
RouteGets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs.
RoutedEventGets or sets the routed event associated with these event args. Inherited from RoutedEventArgs.
ScaleNo summary available.
ScaleOriginNo summary available.
SourceGets or sets the source object that raised the routed event. Inherited from RoutedEventArgs.

Angle Property​

Gets the angle of the pinch gesture, in degrees.

public double Angle { get; set; }

Remarks​

A pinch gesture is the movement of two pressed points closer together. This property is the measured angle of the line between those two points. Remember zero degrees is a line pointing up.

AngleDelta Property​

Gets the difference from the previous and current pinch angle.

public double AngleDelta { get; set; }

Remarks​

The AngleDelta value includes the sign of rotation. Positive for clockwise, negative counterclockwise.

Scale Property​

public double Scale { get; set; }

ScaleOrigin Property​

public Avalonia.Point ScaleOrigin { get; set; }