Skip to main content

RibbonControlBase.ViewMode Property

Gets or sets whether or not the auto-hide functionality is enabled. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Ribbon

Assembly: DevExpress.UI.Xaml.Ribbon.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

public RibbonViewMode ViewMode { get; set; }

Property Value

Type Description
RibbonViewMode

A RibbonViewMode enumeration value that specifies whether or not the auto-hide functionality is enabled.

Available values:

Name Description
Normal

The ribbon is always displayed.

AutoHide

The ribbon is automatically collapsed when it loses focus.

Remarks

To enable the auto-hide functionality, set the ViewMode property to RibbonViewMode.AutoHide. In auto-hide mode, the ribbon is automatically collapsed (with only its title visible) when it loses focus. The collapsed state is indicated by the ellipsis character at the right side of the ribbon control. To expand a collapsed ribbon, an end-user must click its title.

The following image demonstrates a collapsed ribbon.

RibbonControl-AutoHidden

To control the ribbon’s expansion state

in code, use the RibbonControlBase.State property to control the ribbon’s expansion state.

See Also