ButtonBase.IsPressed Property

Gets a value that indicates whether a ButtonBase is currently in a pressed state.

Namespace:  System.Windows.Controls.Primitives
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Public Property IsPressed As Boolean

Property Value

Type: System.Boolean
true if the ButtonBase is in a pressed state; otherwise false. The default is false.

Dependency property identifier field: IsPressedProperty

The IsPressed property is the state of a button that indicates whether the finger, SPACEBAR key, or ENTER key is pressed when the button has focus.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft