Table of Contents

Class PinchEventArgs

Namespace
Avalonia.Input
Assembly
Avalonia.Base.dll
public class PinchEventArgs : RoutedEventArgs
Inheritance
PinchEventArgs
Inherited Members

Constructors

PinchEventArgs(double, Point)

public PinchEventArgs(double scale, Point scaleOrigin)

Parameters

scale double
scaleOrigin Point

PinchEventArgs(double, Point, double, double)

public PinchEventArgs(double scale, Point scaleOrigin, double angle, double angleDelta)

Parameters

scale double
scaleOrigin Point
angle double
angleDelta double

Properties

Angle

Gets the angle of the pinch gesture, in degrees.

public double Angle { get; }

Property Value

double

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

Gets the difference from the previous and current pinch angle.

public double AngleDelta { get; }

Property Value

double

Remarks

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

Scale

public double Scale { get; }

Property Value

double

ScaleOrigin

public Point ScaleOrigin { get; }

Property Value

Point