Defines values that specify the buttons on a mouse device.
Assembly: PresentationCore (in PresentationCore.dll)
The left mouse button.
The middle mouse button.
The right mouse button.
The first extended mouse button.
The second extended mouse button.
Legacy Code Example
The following example creates a MouseDown event handler that uses the enumeration to determine which button was pressed. Depending on which button was pressed, the background of the control that fired the event is changed.Code snippet is not found. Confirm that the code snippet name 'mousesnippetsample' is correct.
Available since 3.0