Back to Devexpress

NavBarControl.EachGroupHasSelectedItem Property

wpf-devexpress-dot-xpf-dot-navbar-dot-navbarcontrol-de1c6038.md

latest2.0 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.NavBar

Declaration

csharp
public bool EachGroupHasSelectedItem { get; set; }
vb
Public Property EachGroupHasSelectedItem As Boolean

Property Value

TypeDescription
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

NavBarControl Class

NavBarControl Members

DevExpress.Xpf.NavBar Namespace