InputPointerEventArgs Class
Provides event data for pointer-based input events.
public class InputPointerEventArgs : EventArgs
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.
Handled
Indicates whether the event has been handled.
public bool Handled { get; set; }
Property Value
- bool:
trueif 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.
WrappedEventArgs
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
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:
trueif the current pointer position is over the specified element; otherwise,false.
ToString()
Returns the string representation of this object.
Inherited Members
- EventArgs.Empty
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()