Back to Devexpress

NavBarControl.SelectedItem Property

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

latest2.1 KB
Original Source

NavBarControl.SelectedItem Property

Gets or sets the NavBarItem currently selected within this NavBarControl.

Namespace : DevExpress.Xpf.NavBar

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

NuGet Package : DevExpress.Wpf.NavBar

Declaration

csharp
public object SelectedItem { get; set; }
vb
Public Property SelectedItem As Object

Property Value

TypeDescription
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

EachGroupHasSelectedItem

SelectedItems

SelectedItem

NavBarControl Class

NavBarControl Members

DevExpress.Xpf.NavBar Namespace