InputTappedEventArgs Class
Provides event data for pointer-based tap events.
public class InputTappedEventArgs : EventArgs
Constructors
InputTappedEventArgs(InputEventArgs)
Initializes a new instance of the InputTappedEventArgs class.
public InputTappedEventArgs(InputEventArgs e)
Parameter | Type | Description |
---|---|---|
e | 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
- bool:
true
if the event has been handled; otherwise,false
.
OriginalSource
Gets the original source of the event.
WrappedEventArgs
Gets the wrapped event arguments.
public InputEventArgs WrappedEventArgs { get; }
Property Value
- 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 | UIElement | The element to examine. |
Returns
- Point:
The current pointer position relative to the specified element.
ToString()
Returns a string representation of this instance.