2

I need some help in creating a grouped ListView for an Universal Windows App. I found an example to do that but it was for windows 8 phone, and it was using CollectionViewSource class and bind the ListView ItemsSource to it. But this is not available anymore, at least for Universal Windows App template. Please Help.

Thanks in advance.

SamTh3D3v
  • 9,854
  • 3
  • 31
  • 47

1 Answers1

0

There is no default XAML control for UWP that represents Expandable Listview. However you can create your own or use custom one. Below you can find two possible solutions:

  1. First one - I have created "Expandable ListView" like on the picture below. You can find whole source code on my GitHub:

https://github.com/Daniel-Krzyczkowski/Windows10/tree/master/ExpandableListView

enter image description here

  1. Second solution is to use "WinRTXAMLToolkit" which contains TreeView control:

https://github.com/xyzzer/WinRTXamlToolkit

Here you can find the post how to customize the control:

WinRT XAML Toolkit TreeView expanded display

Hope that I helped.

Community
  • 1
  • 1
Daniel Krzyczkowski
  • 2,732
  • 2
  • 20
  • 30