Search code examples
c#xamlwindows-8windows-store-apps

Grouped ListView in XAML


Is it possible to create a grouped ListView entirely in XAML? In this link, it is explained how to implement grouping using CollectionViewSource. But is something like shown below possible?

<ListView>
   <Group 1>
      <ListViewItem />
      <ListViewItem />
      <ListViewItem />
  </Group 1>
  <Group 2>
      <ListViewItem />
      <ListViewItem />
      <ListViewItem />
  </Group 2>
</ListView>

Solution

  • I'm sorry, this is not a feature in the ItemsControls in WinRT apps. You must use the CollectionViewSource for grouping lists.