Back to Devexpress

NavBarGroup.Items Property

wpf-devexpress-dot-xpf-dot-navbar-dot-navbargroup-90cd8317.md

latest2.1 KB
Original Source

NavBarGroup.Items Property

Gets the collection of items within the group and provides indexed access to them.

Namespace : DevExpress.Xpf.NavBar

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

NuGet Package : DevExpress.Wpf.NavBar

Declaration

csharp
public NavBarItemCollection Items { get; }
vb
Public ReadOnly Property Items As NavBarItemCollection

Property Value

TypeDescription
NavBarItemCollection

A NavBarItemCollection object representing the collection of the group’s items.

|

Remarks

If a group’s NavBarGroup.DisplaySource property is set to DisplaySource.Items, the content of the group’s client region is defined using the Items property. This property provides access to a collection that contains all the items of the current group. This collection provides a standard means to manipulate (add or remove) items within a group. A particular item can be accessed using index notation.

Note

The NavBarGroup.Items property is, by design, specified as the default property and the content property of a group. This, for example, allows you to declare items in XAML directly after a group declaration, without wrapping them into opening and closing NavBarGroup.Items tags.

See the Group Content Model topic to learn more.

See Also

Content

ImageSource

NavBarGroup Class

NavBarGroup Members

DevExpress.Xpf.NavBar Namespace