Skip to main content

RibbonControl.ExpandCollapseItem Property

Provides access to the predefined button that expands/colapses the ribbon.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public virtual BarButtonItem ExpandCollapseItem { get; }

Property Value

Type Description

A BarButtonItem object that represents the expand/collapse button.


The ribbon has a predefined button that allows a user to hide/restore ribbon pages (see RibbonControl.ShowExpandCollapseButton). Use the ExpandCollapseItem property to access the expand/collapse button. For instance, you can customize the button glyph, tooltip, etc. To display this button in the Quick Access Toolbar, add a button link to a the RibbonQuickAccessToolbar.ItemLinks collection.

ribbonControl1.ExpandCollapseItem.ImageOptions.ImageUri.Uri = "Show";
See Also