In This Article

InputTouchEventArgs Class

Event arguments that represent a wrapped TouchEventArgs, for testing and mocking.

public class InputTouchEventArgs : EventArgs
Inheritance:
object EventArgs object

Constructors

InputTouchEventArgs(TouchEventArgs)

Initializes a new instance of the InputTouchEventArgs class.

public InputTouchEventArgs(TouchEventArgs args)
Parameter Type Description
args TouchEventArgs

The TouchEventArgs instance containing the event data.

Properties

Handled

Gets or sets a value indicating whether this InputTouchEventArgs is handled.

public bool Handled { get; set; }

Property Value

bool:

true if handled; otherwise, false.

Timestamp

Gets the timestamp.

public int Timestamp { get; }

Property Value

int:

The timestamp.

TouchDevice

Gets the touch device.

public IInputTouchDevice TouchDevice { get; }

Property Value

IInputTouchDevice:

The touch device.

Methods

GetTouchPoint(IInputElement)

Gets the touch point, relative to a given IInputElement.

public IInputTouchPoint GetTouchPoint(IInputElement relativeTo)
Parameter Type Description
relativeTo IInputElement

The IInputElement that the touch point is relative to.

Returns

IInputTouchPoint:

The touch point.

Inherited Members