Share via

MouseButtons Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Specifies constants that indicate which mouse button was clicked.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)


<FlagsAttribute> _
Public Enumeration MouseButtons
public enum MouseButtons


Member name Description
None No mouse button was clicked.
Left The left mouse button was clicked.
Right The right mouse button was clicked.
Middle The wheel button was clicked.


MouseButtons enumeration members are frequently used during event processing.

Version Information


Supported in: 5, 4, 3


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.