Back to Devexpress

NavBarGroup.ItemsSource Property

wpf-devexpress-dot-xpf-dot-navbar-dot-navbargroup-7d13da1c.md

latest3.3 KB
Original Source

NavBarGroup.ItemsSource Property

Gets or sets a collection of objects providing information to generate and initialize navbar items for the current NavBarGroup container. This is a dependency property.

Namespace : DevExpress.Xpf.NavBar

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

NuGet Package : DevExpress.Wpf.NavBar

Declaration

csharp
public IEnumerable ItemsSource { get; set; }
vb
Public Property ItemsSource As IEnumerable

Property Value

TypeDescription
IEnumerable

A source of objects to be visualized as NavBarItems.

|

Remarks

The ItemsSource property supports the MVVM design pattern.

Use the NavBarGroup.ItemTemplate property to visualize objects stored in the ItemsSource collection.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ItemsSource property.

Note

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.

wpf-spreadsheet-how-to-apply-conditional-formatting-to-a-range-of-cells/CS/ConditionalFormatting_WPF_Examples/MainWindow.xaml#L15

xml
<Setter Property="Header" Value="{Binding Header}"/>
    <Setter Property="ItemsSource" Value="{Binding Items}"/>
</Style>

wpf-spreadsheetcontrol-api-part-1/CS/SpreadsheetControl_WPF_API/MainWindow.xaml#L13

xml
<Setter Property="Header" Value="{Binding Header}" />
    <Setter Property="ItemsSource" Value="{Binding Items}" />
</Style>

wpf-spreadsheetcontrol-api-part-2/CS/SpreadsheetControl_WPF_API_Part02/MainWindow.xaml#L13

xml
<Setter Property="Header" Value="{Binding Header}" />
    <Setter Property="ItemsSource" Value="{Binding Items}" />
</Style>

See Also

ItemTemplate

NavBarGroup Class

NavBarGroup Members

DevExpress.Xpf.NavBar Namespace