Ribbon.IsCollapsed Property

Gets or sets a value that indicates whether the Ribbon is collapsed.

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

Syntax

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

Property Value

Type: System.Boolean
true if the Ribbon is collapsed; otherwise, false. The registered default is false. For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

IsCollapsedProperty

Metadata properties set to true

None

Remarks

The ribbon collapses automatically when the application window is resized and does not have enough space to display the ribbon in a meaningful way. When the ribbon is collapsed, all ribbon elements are hidden from view.

When the ribbon is collapsed, the Collapsed event occurs. When the ribbon is expanded, the Expanded event occurs.

.NET Framework Security

See Also

Reference

Ribbon Class

Microsoft.Windows.Controls.Ribbon Namespace

IsMinimized

Collapsed

Expanded