Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RibbonControl.ExpandCollapseItem Property

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

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual BarButtonItem ExpandCollapseItem { get; }

#Property Value

Type Description
BarButtonItem

A BarButtonItem object that represents the expand/collapse button.

#Remarks

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";
ribbonControl1.Toolbar.ItemLinks.Add(ribbonControl1.ExpandCollapseItem);
See Also