Is there a way to group collection items in the XAML code in windows store apps. In WPF you can use a CollectionViewSource
and than use its property CollectionViewSource.GroupDescriptions
or something like that, but for Windows Store apps it doesnt work. I know i can use a Linq query in the code behind, but is there an alternative that is grouping with code declared in XAML?
You're probably not in need for an answer anymore, but I found this question while looking for something similar and also just recently stumbled across an article that probably perfectly answers your question. This might be helpful for someone else later.
How to group items in a list or grid (Windows Store apps using C#/VB/C++ and XAML)
There's grouping of a ListView and querying with LINQ, just what you were asking for.