Skip to main content

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

NuGet Package: DevExpress.Wpf.NavBar


public int SelectedItemIndex { get; set; }

Property Value

Type Description

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.


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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectedItemIndex property.


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