Back to Devexpress

RibbonControl.MinimizationButtonVisibility Property

wpf-devexpress-dot-xpf-dot-ribbon-dot-ribboncontrol-b0c10b24.md

latest4.7 KB
Original Source

RibbonControl.MinimizationButtonVisibility Property

Gets or sets the visibility of the Ribbon Control’s Minimize button.

Namespace : DevExpress.Xpf.Ribbon

Assembly : DevExpress.Xpf.Ribbon.v25.2.dll

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

csharp
public RibbonMinimizationButtonVisibility MinimizationButtonVisibility { get; set; }
vb
Public Property MinimizationButtonVisibility As RibbonMinimizationButtonVisibility

Property Value

TypeDescription
RibbonMinimizationButtonVisibility

A RibbonMinimizationButtonVisibility value that specifies the Minimize button’s visibility.

|

Available values:

NameDescription
Auto

The Minimize button is visible in each Ribbon style except the Office 2007 style.

| | Collapsed |

The Minimize button is hidden in all Ribbon styles.

| | Visible |

The Minimize button is visible in all Ribbon styles.

|

Remarks

The Minimize button allows an end-user to temporarily hide the contents of the Ribbon Control’s pages:

The action for Minimize button depends on ribbon layout mode.

In Simplified mode (RibbonControl.AllowSimplifiedRibbon is true), the Minimize button switches between Classic and Simplified ribbon layout; otherwise it minimizes/expands the contents of the Ribbon Control`s pages.

When the MinimizationButtonVisibility is Auto , the Minimize button is visible in each RibbonStyle except the Office 2007 style.

When the MinimizationButtonVisibility is Auto and the RibbonControl.AllowSimplifiedRibbon is True , the MinimizationButton is visible regardless of the current ribbon style.

Use the RibbonControl.IsMinimizationButtonVisible property to get the actual visibility state of the Minimize button.

The following code snippets (auto-collected from DevExpress Examples) contain references to the MinimizationButtonVisibility 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.

how-to-create-supertips-for-bar-items-ribbon-items-and-standard-controls-in-code-and-xaml-e2702/CS/SuperTipForRibbonFromCode.xaml#L19

xml
</Grid.RowDefinitions>
<dxr:RibbonControl x:Name="RibbonControl" ApplicationButtonLargeIcon="ribbon-application-32x32.png" ApplicationButtonText="File" PageCategoryAlignment="Right" MinimizationButtonVisibility="Visible">
    <dxr:RibbonControl.ToolbarItemLinks>

wpf-spreadsheet-bind-a-worksheet-to-generic-list-or-bindinglist-data-source/CS/DataBindingToListExample/MainWindow.xaml#L544

xml
<DockPanel>
    <dxr:RibbonControl x:Name="ribbonControl1" DockPanel.Dock="Top" MinimizationButtonVisibility="Collapsed" RibbonStyle="Office2010" ShowApplicationButton="False">
        <dxr:RibbonDefaultPageCategory>

See Also

MinimizationButtonPosition

RibbonStyle

IsMinimized

Minimizing Ribbon

RibbonControl Class

RibbonControl Members

DevExpress.Xpf.Ribbon Namespace