Back to Devexpress

RibbonControl.Minimized Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-605c245c.md

latest4.9 KB
Original Source

RibbonControl.Minimized Property

Gets or sets whether the ribbon is minimized.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool Minimized { get; set; }
vb
<DefaultValue(False)>
<Browsable(False)>
<XtraSerializableProperty>
Public Overridable Property Minimized As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the Ribbon Control is minimized; otherwise, false.

|

Remarks

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.

End-User Capabilities

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

csharp
sheetPageCategory.Visible = true;
ribbonControl1.Minimized = false;
ribbonControl1.SelectedPage = dataRibbonPage1;

winforms-spreadsheet-use-custom-cell-editors/CS/DevAVInvoicing/Form1.cs#L22

csharp
LoadInvoiceTemplate();
    ribbonControl1.Minimized = true;
}

winforms-spreadsheet-use-cell-range-as-data-source/VB/RangeDataSource/Form1.vb#L87

vb
sheetPageCategory.Visible = True
ribbonControl1.Minimized = False
ribbonControl1.SelectedPage = dataRibbonPage1

winforms-spreadsheet-use-custom-cell-editors/VB/DevAVInvoicing/Form1.vb#L24

vb
LoadInvoiceTemplate()
    ribbonControl1.Minimized = True
End Sub

See Also

Ribbon Page

MinimizedChanged

AllowMinimizeRibbonOnDoubleClick

MinimizedRibbonShowing

ShowMoreCommandsButton

MaximizeRibbon(RibbonPage)

RibbonControl Class

RibbonControl Members

DevExpress.XtraBars.Ribbon Namespace