Class TouchEventArgs
Implements base arguments for touch events
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface.Input
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class TouchEventArgs : InputEventArgs
Constructors
TouchEventArgs(TouchStateBase, Double, RoutedEvent)
Initializes a new instance of the TouchEventArgs class.
Declaration
public TouchEventArgs(TouchStateBase state, double timestamp, RoutedEvent routedEvent)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Input.TouchStateBase | state | The location. |
System.Double | timestamp | The time stamp. |
RoutedEvent | routedEvent | The routed event. |
TouchEventArgs(TouchStateBase, Double, RoutedEvent, Object)
Initializes a new instance of the TouchEventArgs class.
Declaration
public TouchEventArgs(TouchStateBase state, double timestamp, RoutedEvent routedEvent, object source)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Input.TouchStateBase | state | The location. |
System.Double | timestamp | The time stamp. |
RoutedEvent | routedEvent | The routed event. |
System.Object | source | The source. |
Properties
InputListener
Gets or sets the input listener.
Declaration
public TouchInputListener InputListener { get; set; }
Property Value
Type | Description |
---|---|
TouchInputListener | The input listener. |
State
Gets the state.
Declaration
public TouchStateBase State { get; }
Property Value
Type | Description |
---|---|
EmptyKeys.UserInterface.Input.TouchStateBase | The state. |
TouchDevice
Gets the touch device.
Declaration
public Touch TouchDevice { get; }
Property Value
Type | Description |
---|---|
Touch | The touch device. |
Methods
GetPosition()
Gets the position.
Declaration
public PointF GetPosition()
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.PointF |
GetPosition(UIElement)
Gets the position.
Declaration
public PointF GetPosition(UIElement element)
Parameters
Type | Name | Description |
---|---|---|
UIElement | element | The element. |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.PointF |
InvokeEventHandler(Delegate, Object)
Invokes the event handler.
Declaration
protected override void InvokeEventHandler(Delegate handler, object target)
Parameters
Type | Name | Description |
---|---|---|
System.Delegate | handler | The handler. |
System.Object | target | The target. |