In This Article

InputPointerEventArgs Class

Provides event data for pointer-based input events.

public class InputPointerEventArgs : EventArgs
Inheritance:
object EventArgs object
Derived:
InputPointerButtonEventArgs InputPointerWheelEventArgs

Constructors

InputPointerEventArgs(InputEventArgs)

Provides event data for pointer-based input events.

public InputPointerEventArgs(InputEventArgs e)
Parameter Type Description
e InputEventArgs

The wrapped event arguments.

Properties

DeviceKind

An InputDeviceKind that indicates the device kind.

public InputDeviceKind DeviceKind { get; }

Property Value

InputDeviceKind

Handled

Indicates whether the event has been handled.

public bool Handled { get; set; }

Property Value

bool:

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

ModifierKeys

The modifier keys that are currently pressed.

public ModifierKeys ModifierKeys { get; }

Property Value

ModifierKeys

OriginalSource

The original source of the event.

public object OriginalSource { get; }

Property Value

object

WrappedEventArgs

The wrapped event arguments.

public InputEventArgs WrappedEventArgs { get; }

Property Value

InputEventArgs

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

IsPositionOver(FrameworkElement)

Indicates whether the current pointer position is over the specified element.

public bool IsPositionOver(FrameworkElement element)
Parameter Type Description
element FrameworkElement

The element to examine.

Returns

bool:

true if the current pointer position is over the specified element; otherwise, false.

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members

Extension Methods