microsoft / microsoft/WinUI-Gallery
How to do all the things to a Collection - Sorting, Filtering, Updating, Grouping
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.6k
- Forks
- 756
- Avg merge
- 17h 51m
- Merged PRs (30d)
- 14
Description
Issue type
sample request
Which version of the app?
WinUI 3 Gallery
Description
Especially for the new ItemsView, but even just for ListView, there's not a full-fledged example anywhere of how to take a large collection of items and performantly sort, filter, update, and group them within a UI container.
In WPF, CollectionViewSource did a lot of heavy lifting here, but there's a gap for the platform still on this: https://github.com/microsoft/microsoft-ui-xaml/issues/4307
So, even more so, a sample that shows how to do this that's production ready would be appreciated.
The doc on filtering that do exist, seems woefully inefficient or error-prone compared to the simplicity of setting the Filter from WPF days: https://learn.microsoft.com/dotnet/desktop/wpf/data/how-to-filter-data-in-a-view
Screenshots
No response
Windows version
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing ListView filtering documentation and the ItemsView and ListView examples in WinUI Gallery, then compare the linked WPF CollectionViewSource guidance. Done means a production-ready sample demonstrates performant sorting, filtering, updating, and grouping of a large collection within a UI container.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop, documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100