In This Article

InputTouchEventArgs Class

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

public class InputTouchEventArgs : EventArgs
Inheritance:
System.Object System.EventArgs Object

Constructors

InputTouchEventArgs(TouchEventArgs)

Initializes a new instance of the InputTouchEventArgs class.

public InputTouchEventArgs(TouchEventArgs args)
Parameter Type Description
args System.Windows.Input.TouchEventArgs

The System.Windows.Input.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

System.Boolean:

true if handled; otherwise, false.

Timestamp

Gets the timestamp.

public int Timestamp { get; }

Property Value

System.Int32:

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 System.Windows.IInputElement.

public IInputTouchPoint GetTouchPoint(IInputElement relativeTo)
Parameter Type Description
relativeTo System.Windows.IInputElement

The System.Windows.IInputElement that the touch point is relative to.

Returns

IInputTouchPoint:

The touch point.

Inherited Members

  • System.EventArgs.Empty
  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()