Class PinchEventArgs
FormsGestures Pinch event arguments.
Inherited Members
Namespace: FormsGestures
Assembly: FormsGestures.dll
Syntax
public class PinchEventArgs : BaseGestureEventArgs
Constructors
PinchEventArgs(PinchEventArgs, Listener)
constructor
Declaration
public PinchEventArgs(PinchEventArgs source = null, Listener newListener = null)
Parameters
Type | Name | Description |
---|---|---|
PinchEventArgs | source | |
Listener | newListener |
Properties
DeltaScale
Scale of most recent sample of pinch motion (relative to first sample)
Declaration
public virtual double DeltaScale { get; protected set; }
Property Value
Type | Description |
---|---|
Double |
Distance
Distance of most recent sampling of pinch motion
Declaration
public virtual double Distance { get; protected set; }
Property Value
Type | Description |
---|---|
Double |
TotalScale
Total change in scale of pinch motion
Declaration
public virtual double TotalScale { get; protected set; }
Property Value
Type | Description |
---|---|
Double |
Methods
CalculateScales(PinchEventArgs)
Calculates total and most recent change in scale
Declaration
protected void CalculateScales(PinchEventArgs previous)
Parameters
Type | Name | Description |
---|---|---|
PinchEventArgs | previous |
ValueFrom(PinchEventArgs)
Updates properties from the values from another instance
Declaration
public void ValueFrom(PinchEventArgs source)
Parameters
Type | Name | Description |
---|---|---|
PinchEventArgs | source |