Skip to main content

NavBarGroup Class

Represents an individual group within the NavBarControl.

Namespace: DevExpress.Xpf.NavBar

Assembly: DevExpress.Xpf.NavBar.v24.1.dll

NuGet Package: DevExpress.Wpf.NavBar


public class NavBarGroup :


A navbar control maintains collections of groups and items. Groups are represented by instances of the NavBarGroup class which can be accessed via the NavBarControl.Groups property. This property returns the NavBarGroupCollection collection which allows you to add and delete groups within the navbar.

Use properties of the NavBarGroup class to specify the appearance and behavior of an individual group. Use the NavBarGroup.Header and NavBarGroup.ImageSource properties to define the caption text of a group and an image to be displayed within the group’s header. A group’s visibility can be controlled via the NavBarGroup.IsVisible property. The content of a group can be defined by either the NavBarGroup.Items or NavBarGroup.Content property, depending upon the NavBarGroup.DisplaySource property setting.

Set the NavBarGroup.IsExpanded property to true to expand a group; set it to false to collapse it. Use the NavBarGroup.SelectedItem or NavBarGroup.SelectedItemIndex property to determine a group’s selected item.

Using the NavBarGroup.VisualStyle property you can define a visual style to be applied to a group. The appearance of a group’s items can be controlled by using the NavBarGroup.ItemVisualStyle property.

To learn more, see the Groups topic.

The following code snippets (auto-collected from DevExpress Examples) contain references to the NavBarGroup class.


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