Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to: Generate NavBarControl Groups and Items from a Collection

$
0
0

In MVVM scenarios, it's often necessary to generate elements from a collection. NavBarControl provides such a capability via the ItemsSource property. In this example, each object corresponding to NavBarGroup contains a sub-collection of items which will be visualized by NavBarItems. This is sub-collection is bound to the NavBarGroup.ItemsSource property. 

If you wish to group items without specifying NavBarGroup.ItemsSource, use the approach demonstrated at How to: Generate NavBarControl Items from a Collection and Automatically Group Them Depending on a Field Value.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>