Show / Hide Table of Contents

    Class BaseGestureEventArgs

    FormsGestures Base gesture event arguments.

    Inheritance
    Object
    EventArgs
    BaseGestureEventArgs
    DownUpEventArgs
    PanEventArgs
    PinchEventArgs
    RightClickEventArgs
    RotateEventArgs
    SwipeEventArgs
    TapEventArgs
    Inherited Members
    EventArgs.Empty
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: FormsGestures
    Assembly: FormsGestures.dll
    Syntax
    public class BaseGestureEventArgs : EventArgs

    Constructors

    BaseGestureEventArgs(BaseGestureEventArgs, Listener)

    constructor

    Declaration
    public BaseGestureEventArgs(BaseGestureEventArgs source = null, Listener newListener = null)
    Parameters
    Type Name Description
    BaseGestureEventArgs source
    Listener newListener

    Properties

    Cancelled

    has the touch been cancelled (and thus this is the last of the touch sequence)

    Declaration
    public virtual bool Cancelled { get; }
    Property Value
    Type Description
    Boolean

    ElementPosition

    current position of VisualElement in Window coordinates

    Declaration
    public virtual Rectangle ElementPosition { get; protected set; }
    Property Value
    Type Description
    Rectangle

    ElementTouches

    Set of touch points, in VisualElement coordinates, that make up this event

    Declaration
    public virtual Point[] ElementTouches { get; }
    Property Value
    Type Description
    Point[]

    Event

    Name of event that has been triggered

    Declaration
    public string Event { get; }
    Property Value
    Type Description
    String

    Handled

    gets/sets if the gesture was handled

    Declaration
    public bool Handled { get; set; }
    Property Value
    Type Description
    Boolean

    IsTouchCenterInView

    Tests if the TouchCenter is within the bounds of the view

    Declaration
    public bool IsTouchCenterInView { get; }
    Property Value
    Type Description
    Boolean

    Listener

    gets/sets Listener

    Declaration
    public virtual Listener Listener { get; set; }
    Property Value
    Type Description
    Listener

    NumberOfTouches

    Number of touches in touch event

    Declaration
    public virtual int NumberOfTouches { get; }
    Property Value
    Type Description
    Int32

    WindowTouches

    Set of touch points, in Window coordinates, that make up this touch event

    Declaration
    public virtual Point[] WindowTouches { get; }
    Property Value
    Type Description
    Point[]

    Methods

    Center(Point[])

    center of a set of touch points

    Declaration
    public virtual Point Center(Point[] touches)
    Parameters
    Type Name Description
    Point[] touches
    Returns
    Type Description
    Point

    Contains(Point)

    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
    Type Description
    Boolean

    Equals(BaseGestureEventArgs)

    Equal test

    Declaration
    public bool Equals(BaseGestureEventArgs other)
    Parameters
    Type Name Description
    BaseGestureEventArgs other
    Returns
    Type Description
    Boolean

    Equals(Object)

    Equal test

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)

    GetHashCode()

    HasCode getter

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()

    ValueFrom(BaseGestureEventArgs)

    Updates properties of this instance with values from an other instance

    Declaration
    public void ValueFrom(BaseGestureEventArgs other)
    Parameters
    Type Name Description
    BaseGestureEventArgs other

    Extension Methods

    DebugExtensions.AddToCensus(Object)
    DebugExtensions.RemoveFromCensus(Object)
    ReflectionExtensions.GetProperties(Object)
    ReflectionExtensions.GetProperty(Object, String)
    ReflectionExtensions.PropertyNames(Object)
    ReflectionExtensions.PropertyExists(Object, String)
    ReflectionExtensions.HasProperty(Object, String)
    ReflectionExtensions.GetPropertyValue(Object, String)
    ReflectionExtensions.SetPropertyValue(Object, String, Object)
    ReflectionExtensions.GetFieldValue(Object, String)
    ReflectionExtensions.SetFieldValue(Object, String, Object)
    ReflectionExtensions.CallMethod(Object, String, Object[])
    Back to top Copyright © 2018 42nd Parallel