Share via


RibbonGalleryItem.IsPressed Property

Gets a value that indicates whether the left mouse button or the SPACEBAR is pressed over the item.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Property IsPressed As Boolean
public bool IsPressed { get; private set; }
public:
property bool IsPressed {
    bool get ();
    private: void set (bool value);
}
member IsPressed : bool with get, private set
function get IsPressed () : boolean
private function set IsPressed (value : boolean)

Property Value

Type: System.Boolean
true if the left mouse button or the SPACEBAR is pressed over the item; otherwise, false. The default is false.

Dependency Property Information

Identifier field

IsPressedProperty

Metadata properties set to true

None

.NET Framework Security

See Also

Reference

RibbonGalleryItem Class

Microsoft.Windows.Controls.Ribbon Namespace