September 2012
Intermediate to advanced
464 pages
10h 55m
English
The previous recipe used the ICollectionView source for sorting, filtering, and navigating. Another useful feature of ICollectio
nView is grouping. This allows the partitioning of the data into groups based on some criteria (typically a property). Each such group is subject to sorting and/or filtering, if used.
Make sure Visual Studio is up and running.
We'll use the same collection of process objects used previously, but this time we'll group them by some criteria.
MainWindow.xaml. Add a ListBox to the existing grid, with a simple data template to display information on process objects:<ListBox ItemsSource="{Binding}" HorizontalContentAlignment="Stretch"> ...