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)

Initializes a new instance of the InputPointerEventArgs class.

public InputPointerEventArgs(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

Boolean:

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

ModifierKeys

Gets the modifier keys that are currently pressed.

public ModifierKeys ModifierKeys { get; }

Property Value

ModifierKeys:

The modifier keys that are currently pressed.

OriginalSource

Gets the original source of the event.

public object OriginalSource { get; }

Property Value

Object:

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.

IsPositionOver(FrameworkElement)

Returns 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

Boolean:

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

ToString()

Returns a String representation of this instance.

public override string ToString()

Returns

String:

A String representation of this instance.

Inherited Members