IsPressed Property
Collapse the table of content
Expand the table of content

ButtonBase.IsPressed Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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)

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

© 2017 Microsoft