Skip to main content
A newer version of this page is available. .

NavBarControl.Compact Property

Toggles the Navigation Bar’s Compact mode on or off.

Namespace: DevExpress.Xpf.NavBar

Assembly: DevExpress.Xpf.NavBar.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.NavBar, DevExpress.Wpf.Navigation

Declaration

public bool Compact { get; set; }

Property Value

Type Description
Boolean

true, if the Compact mode is enabled; otherwise, false.

Remarks

By default, the NavBarControl functions in Compact mode. Disabling this mode for the NavigationPane View will hide all visual elements, leaving only the currently active group and its items visible. Do this only if you use the Navigation Bar as an item source for an Office Navigation Bar. Otherwise, leave the Compact property in its default state. See the Office Navigation Bar article to learn more.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Compact 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.

See Also