In This Article

InputPointerButtonEventArgs Class

Provides event data for pointer button input events.

public class InputPointerButtonEventArgs : InputPointerEventArgs
Inheritance:
object EventArgs InputPointerEventArgs object

Constructors

InputPointerButtonEventArgs(IInputElement, MouseEventArgs, InputPointerButtonKind)

Provides event data for pointer button input events.

public InputPointerButtonEventArgs(IInputElement originalSource, MouseEventArgs e, InputPointerButtonKind buttonKind)
Parameter Type Description
originalSource IInputElement

The original source element.

e MouseEventArgs

The wrapped event arguments.

buttonKind InputPointerButtonKind

An InputPointerButtonKind indicating the button kind.

Properties

ButtonKind

A InputPointerButtonKind indicating the button kind.

public InputPointerButtonKind ButtonKind { get; }

Property Value

InputPointerButtonKind

IsPrimaryButton

Indicates whether the pressed button is a primary button (left mouse button, primary stylus button, etc.).

public bool IsPrimaryButton { get; }

Property Value

bool:

true if pressed button is a primary button; otherwise, false.

Inherited Members

Extension Methods