InputPointerEventArgs Class
Provides event data for pointer-based input events.
public class InputPointerEventArgs : EventArgs
Constructors
InputPointerEventArgs(IInputElement, MouseEventArgs)
Provides event data for pointer-based input events.
public InputPointerEventArgs(IInputElement originalSource, MouseEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| originalSource | IInputElement | The original source element. |
| e | MouseEventArgs | 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.
OriginalSource
The original source of the event.
WrappedEventArgs
The wrapped event arguments.
Methods
GetPosition(IUIElement)
Returns the current pointer position relative to the specified element.
public Point GetPosition(IUIElement relativeTo)
| Parameter | Type | Description |
|---|---|---|
| relativeTo | IUIElement | The element to examine. |
Returns
IsPositionOver(IUIElement)
Indicates whether the current pointer position is over the specified element.
public bool IsPositionOver(IUIElement element)
| Parameter | Type | Description |
|---|---|---|
| element | IUIElement | 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()