The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 bool IsPressed { get; protected internal set; }

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