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

Gets or sets the collection of NavBarItems currently selected within this NavBarControl.

Namespace: DevExpress.Xpf.NavBar

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

NuGet Package: DevExpress.Wpf.NavBar

#Declaration

public IEnumerable SelectedItems { get; set; }

#Property Value

Type Description
IEnumerable

An IEnumerable object that stores NavBarItems currently selected within this NavBarControl.

#Remarks

The SelectedItems collection is used only when this NavBarControl‘s NavBarControl.EachGroupHasSelectedItem property is set to true. Otherwise, a NavBarControl can have only one selected item at a time. In this case, use the NavBarControl.SelectedItem property to get or set this item.

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

See Also