Class BaseGestureEventArgs
FormsGestures Base gesture event arguments.
Inheritance
BaseGestureEventArgs
Assembly: FormsGestures.dll
public class BaseGestureEventArgs : EventArgs
Constructors
Declaration
public BaseGestureEventArgs(BaseGestureEventArgs source = null, Listener newListener = null)
Parameters
Properties
has the touch been cancelled (and thus this is the last of the touch sequence)
Declaration
public virtual bool Cancelled { get; }
Property Value
current position of VisualElement in Window coordinates
Declaration
public virtual Rectangle ElementPosition { get; protected set; }
Property Value
Set of touch points, in VisualElement coordinates, that make up this event
Declaration
public virtual Point[] ElementTouches { get; }
Property Value
Name of event that has been triggered
Declaration
public string Event { get; }
Property Value
gets/sets if the gesture was handled
Declaration
public bool Handled { get; set; }
Property Value
Tests if the TouchCenter is within the bounds of the view
Declaration
public bool IsTouchCenterInView { get; }
Property Value
Declaration
public virtual Listener Listener { get; set; }
Property Value
Number of touches in touch event
Declaration
public virtual int NumberOfTouches { get; }
Property Value
Set of touch points, in Window coordinates, that make up this touch event
Declaration
public virtual Point[] WindowTouches { get; }
Property Value
Methods
center of a set of touch points
Declaration
public virtual Point Center(Point[] touches)
Parameters
Type |
Name |
Description |
Point[] |
touches |
|
Returns
Tests if a point, in Window coordinates, is within the bounds of the view
Declaration
public bool Contains(Point p)
Parameters
Type |
Name |
Description |
Point |
p |
|
Returns
Declaration
public bool Equals(BaseGestureEventArgs other)
Parameters
Returns
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Declaration
public override int GetHashCode()
Returns
Overrides
Updates properties of this instance with values from an other instance
Declaration
public void ValueFrom(BaseGestureEventArgs other)
Parameters
Extension Methods