Back to Devexpress

RibbonControl.ExpandCollapseItem Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-3ef74a5d.md

latest2.7 KB
Original Source

RibbonControl.ExpandCollapseItem Property

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

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual BarButtonItem ExpandCollapseItem { get; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overridable ReadOnly Property ExpandCollapseItem As BarButtonItem

Property Value

TypeDescription
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.

csharp
ribbonControl1.ExpandCollapseItem.ImageOptions.ImageUri.Uri = "Show";
ribbonControl1.Toolbar.ItemLinks.Add(ribbonControl1.ExpandCollapseItem);
vb
ribbonControl1.ExpandCollapseItem.ImageOptions.ImageUri.Uri = "Show"
ribbonControl1.Toolbar.ItemLinks.Add(ribbonControl1.ExpandCollapseItem)

See Also

Minimized

MinimizedChanged

ShowExpandCollapseButton

RibbonControl Class

RibbonControl Members

DevExpress.XtraBars.Ribbon Namespace