Skip to main content

TouchEventArgs Class

NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Input

Contains information about a touch input event.

public class TouchEventArgs : InputEventArgs

Constructors

TouchEventArgs(InputDevice inputDevice, DateTime timestamp, TouchInput[] touches)

public TouchEventArgs(InputDevice inputDevice, DateTime timestamp, TouchInput[] touches) : base(inputDevice, timestamp)

Constructs an instance of the TouchEventArgs class.

Methods

GetPosition(UIElement relativeTo, int touchIndex, out int x, out int y)

public void GetPosition(UIElement relativeTo, int touchIndex, out int x, out int y)

Gets the position of a touch point relative to the specified element.

Fields

Touches

public TouchInput[] Touches

The touch points associated with this event.