windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-3ef74a5d.md
Provides access to the predefined button that expands/colapses the ribbon.
Namespace : DevExpress.XtraBars.Ribbon
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual BarButtonItem ExpandCollapseItem { get; }
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overridable ReadOnly Property ExpandCollapseItem As BarButtonItem
| Type | Description |
|---|---|
| BarButtonItem |
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";
ribbonControl1.Toolbar.ItemLinks.Add(ribbonControl1.ExpandCollapseItem);
ribbonControl1.ExpandCollapseItem.ImageOptions.ImageUri.Uri = "Show"
ribbonControl1.Toolbar.ItemLinks.Add(ribbonControl1.ExpandCollapseItem)
See Also