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

NavBarControl.EachGroupHasSelectedItem Property

Gets or sets a value specifying whether each group can have a selected item. This is a dependency property.

Namespace: DevExpress.Xpf.NavBar

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

NuGet Package: DevExpress.Wpf.NavBar

#Declaration

public bool EachGroupHasSelectedItem { get; set; }

#Property Value

Type Description
Boolean

true if each group can have a selected item; otherwise false.

#Remarks

The default behavior of the NavBarControl is to deselect all items in each group when an item is selected. Set the EachGroupHasSelectedItem property to true, to deselect only the current group items when an item is selected. In such an instance, each group can have a single selected item within it at one time. A group’s selected item can be determined via the NavBarGroup.SelectedItem (NavBarGroup.SelectedItemIndex) property.

Note that the NavBarControl.AllowSelectItem property value must be set to true, in order to allow item selection.

See the Clicking and Selecting Items topic to learn more.

See Also