Ribbon.IsCollapsed Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

C#
public bool IsCollapsed { get; set; }

Property Value

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.

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.

Dependency Property Information

Item Value
Identifier field IsCollapsedProperty
Metadata properties set to true None

Applies to

Produkt Verzie
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also