MouseButtonState Enumeration

 

Specifies the possible states of a mouse button.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

type MouseButtonState

Member nameDescription
Pressed

The button is pressed.

Released

The button is released.

The MouseButtonState enumeration specifies constants which correlate to the state of a mouse button.

The following example shows a mouse event handler that determines which buttons are currently pressed by checking the button state of each mouse button.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: