In This Article

InputTappedEventArgs Class

Provides event data for pointer-based tap events.

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

Constructors

InputTappedEventArgs(InputEventArgs)

Initializes a new instance of the InputTappedEventArgs class.

public InputTappedEventArgs(InputEventArgs e)
Parameter Type Description
e System.Windows.Input.InputEventArgs

The wrapped event arguments.

Properties

DeviceKind

Gets an InputDeviceKind that indicates the device kind.

public InputDeviceKind DeviceKind { get; }

Property Value

InputDeviceKind:

An InputDeviceKind that indicates the device kind.

Handled

Gets or set whether the event has been handled.

public bool Handled { get; set; }

Property Value

System.Boolean:

true if the event has been handled; otherwise, false.

OriginalSource

Gets the original source of the event.

public object OriginalSource { get; }

Property Value

System.Object:

The original source of the event.

WrappedEventArgs

Gets the wrapped event arguments.

public InputEventArgs WrappedEventArgs { get; }

Property Value

System.Windows.Input.InputEventArgs:

The wrapped event arguments.

Methods

GetPosition(UIElement)

Returns the current pointer position relative to the specified element.

public Point GetPosition(UIElement relativeTo)
Parameter Type Description
relativeTo System.Windows.UIElement

The element to examine.

Returns

System.Windows.Point:

The current pointer position relative to the specified element.

ToString()

Returns a System.String representation of this instance.

public override string ToString()

Returns

System.String:

A System.String representation of this instance.

Inherited Members

  • System.EventArgs.Empty
  • 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()