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

NavBarGroup.SelectedItemIndex Property

Gets or sets a value specifying the index of the group’s 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 int SelectedItemIndex { get; set; }

#Property Value

Type Description
Int32

An integer value specifying the zero-based index of the selected item within the group. -1 if none of the group’s items are curretly selected.

#Remarks

Read the SelectedItemIndex property value to obtain the index of the selected item within the group. The obtained value corresponds to the index of the NavBarItem object within the NavBarGroup.Items collection. Assign an index of an item to this property to select the item.

To learn more, see the Clicking and Selecting Items topic.

See Also