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.SelectedItem Property

Gets or sets the NavBarItem currently selected within this NavBarControl.

Namespace: DevExpress.Xpf.NavBar

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

NuGet Package: DevExpress.Wpf.NavBar

#Declaration

public object SelectedItem { get; set; }

#Property Value

Type Description
Object

An Object that is the NavBarItem currently selected within this NavBarControl.

#Remarks

The SelectedItem property is in effect only if this NavBarControl can have only one selected item at a time. Otherwise, if the NavBarControl.EachGroupHasSelectedItem property equals true, the selected item (or items) is stored within the NavBarControl.SelectedItems collection.

To get or set the item selected within an individual NavBarGroup, use the NavBarGroup.SelectedItem property.

See Also