Share via


IXRButtonBase::GetIsPressed (Compact 2013)

3/28/2014

This method retrieves a value that indicates whether this button control is currently in a pressed state.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetIsPressed(
    bool *pPressedProperty
) = 0;

Parameters

  • pPressedProperty
    [out] Pointer to a Boolean that indicates whether this button control is currently in a pressed state. This value is true if this control is in a pressed state; otherwise, it is false.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The pPressedProperty value is the state of a button that indicates whether the left mouse button, the SPACEBAR key, or ENTER key is pressed, or the stylus taps the button, when the button has mouse focus or when the button has keyboard focus.

.NET Framework Equivalent

System.Windows.Controls.Primitives.ButtonBase.IsPressed

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRButtonBase