PinchEventArgs Class
Definition
public class PinchEventArgs
Constructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Angle | Gets the angle of the pinch gesture, in degrees. |
| AngleDelta | Gets the difference from the previous and current pinch angle. |
| Scale | No summary available. |
| ScaleOrigin | No summary available. |
| Handled | Gets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs. |
| Route | Gets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs. |
| RoutedEvent | Gets or sets the routed event associated with these event args. Inherited from RoutedEventArgs. |
| Source | Gets 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; }