PointerPointProperties.IsRightButtonPressed Property


Gets a value that indicates whether the pointer input was triggered by the secondary action mode (if supported) of an input device.

 property bool IsRightButtonPressed { bool get(); };
bool IsRightButtonPressed();
public bool IsRightButtonPressed { get; }
var boolean = pointerPointProperties.isRightButtonPressed;
Public ReadOnly Property IsRightButtonPressed As Boolean

Property Value



True if the secondary action mode; otherwise false.


Examples of secondary action modes for various input devices:

  • A touch pointer does not set this property.
  • A pen pointer when the pen tip is in contact with the digitizer surface and a modifying button, such as a barrel button (see IsBarrelButtonPressed), is pressed. An eraser tip does not set this property (see IsEraser).
  • A mouse pointer when the right mouse button is pressed.

Applies to

See also