InputPointerButtonEventArgs Class
Provides event data for pointer button input events.
public class InputPointerButtonEventArgs : InputPointerEventArgs
- Inheritance:
- Object EventArgs InputPointerEventArgs Object
Constructors
InputPointerButtonEventArgs(InputEventArgs, InputPointerButtonKind)
Initializes a new instance of the InputPointerButtonEventArgs class.
public InputPointerButtonEventArgs(InputEventArgs e, InputPointerButtonKind buttonKind)
Parameter | Type | Description |
---|---|---|
e | InputEventArgs | The wrapped event arguments. |
buttonKind | InputPointerButtonKind | A InputPointerButtonKind indicating the button kind. |
Properties
ButtonKind
Gets a InputPointerButtonKind indicating the button kind.
public InputPointerButtonKind ButtonKind { get; }
Property Value
- InputPointerButtonKind:
A InputPointerButtonKind indicating the button kind.
IsPrimaryButton
Gets whether the pressed button is a primary button (left mouse button, primary stylus button, etc.).
public bool IsPrimaryButton { get; }
Property Value
- Boolean:
true
if pressed button is a primary button; otherwise,false
.
WrappedEventArgs
Gets the wrapped event arguments.
public InputEventArgs WrappedEventArgs { get; }
Property Value
- InputEventArgs:
The wrapped event arguments.
Inherited Members
- InputPointerEventArgs.GetPosition(UIElement)
- InputPointerEventArgs.IsPositionOver(FrameworkElement)
- InputPointerEventArgs.ToString()
- InputPointerEventArgs.DeviceKind
- InputPointerEventArgs.Handled
- InputPointerEventArgs.ModifierKeys
- InputPointerEventArgs.OriginalSource
- EventArgs.Empty
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()