Skip to content

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

@michael-hawker

Description

@michael-hawker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededsample enhancementRequests for new samples or changes to an existing page

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions