windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-605c245c.md
Gets or sets whether the ribbon is minimized.
Namespace : DevExpress.XtraBars.Ribbon
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[Browsable(false)]
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool Minimized { get; set; }
<DefaultValue(False)>
<Browsable(False)>
<XtraSerializableProperty>
Public Overridable Property Minimized As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if the Ribbon Control is minimized; otherwise, false.
|
Set the Minimized property to true to collapse the ribbon, showing only the page headers.
Tip
In the Office2019 style, the CommandLayout property allows you to collapse the command layout into a single-line layout.
You can do the following to show/hide the ribbon:
Double click a page header to collapse/restore the ribbon.
Click a page header to restore the ribbon (which displays it over the form content) or to collapse the ribbon.
Click the corresponding command in the context menu. (Ensure that the AllowMinimizeRibbon property is set to true.)
Click the Collapse button. (Ensure that the ShowExpandCollapseButton option is enabled.)
The following code snippets (auto-collected from DevExpress Examples) contain references to the Minimized property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-spreadsheet-use-cell-range-as-data-source/CS/RangeDataSource/Form1.cs#L82
sheetPageCategory.Visible = true;
ribbonControl1.Minimized = false;
ribbonControl1.SelectedPage = dataRibbonPage1;
winforms-spreadsheet-use-custom-cell-editors/CS/DevAVInvoicing/Form1.cs#L22
LoadInvoiceTemplate();
ribbonControl1.Minimized = true;
}
winforms-spreadsheet-use-cell-range-as-data-source/VB/RangeDataSource/Form1.vb#L87
sheetPageCategory.Visible = True
ribbonControl1.Minimized = False
ribbonControl1.SelectedPage = dataRibbonPage1
winforms-spreadsheet-use-custom-cell-editors/VB/DevAVInvoicing/Form1.vb#L24
LoadInvoiceTemplate()
ribbonControl1.Minimized = True
End Sub
See Also