Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

OfficeNavigationBar.Compact Property

Gets or sets whether this OfficeNavigationBar is in compact mode.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public bool Compact { get; set; }

#Property Value

Type Default Description
Boolean false

true if this OfficeNavigationBar is in compact mode; otherwise, false.

#Remarks

Office Navigation Bar can operate in compact mode only when it serves as a bottom navigation panel for the Navigation Bar control (refer to the Interaction with Navigation Bar article for more information). In this mode, the control is integrated into the Navigation Bar and docked to its bottom. All Office Navigation Bar items hide their captions and display only icons. These icons are automatically retrieved from corresponding Navigation Bar groups. The animation below illustrates an example.

End-users can switch an Office Navigation Bar from regular to compact mode and back by using the customization dialog. See the Office Navigation Bar topic to learn more.

See Also