Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to do all the things to a Collection - Sorting, Filtering, Updating, Grouping #1625

Open
michael-hawker opened this issue Sep 19, 2024 · 3 comments
Labels
help wanted Extra attention is needed sample enhancement Requests for new samples or changes to an existing page

Comments

@michael-hawker
Copy link
Contributor

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: microsoft/microsoft-ui-xaml#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

@karkarl karkarl added sample enhancement Requests for new samples or changes to an existing page help wanted Extra attention is needed and removed needs-triage labels Oct 10, 2024
@AndrewKeepCoding
Copy link
Contributor

This demo app might help. 🙂

demo.mp4

@AndrewKeepCoding
Copy link
Contributor

@AndrewKeepCoding
Copy link
Contributor

I'm not sure if the ItemsView is a good option for grouping. The selection feature is not what you would expect. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed sample enhancement Requests for new samples or changes to an existing page
Projects
None yet
Development

No branches or pull requests

3 participants