RibbonControl.ExpandCollapseItem Property

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

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[Browsable(false)]
public virtual BarButtonItem ExpandCollapseItem { get; }
<Browsable(False)>
Public Overridable ReadOnly Property ExpandCollapseItem As BarButtonItem

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