Skip to content

What is the accepted / best method for sorting / filtering an ObervableCollection in Community Toolkit MVVM? #18038

Answered by stevemonaco
GamingCity asked this question in Q&A
Discussion options

You must be logged in to vote

DynamicData is technically separate from ReactiveUI (though it's used by and maintained by their team, in part). You can import the System.Reactive and DynamicData packages into an Mvvm Toolkit app.

However, ReactiveUI has some nice extensions that you may need. I'm not sure how easily these can be included in your app without also taking a dependency on ReactiveUI. Even if you do, you can use Mvvm Toolkit + ReactiveUI side-by-side if you're careful about it. This is what I've done in the past, but the extra dependency didn't really matter.

An alternative is ObservableCollections + R3 which should also be usable with Mvvm Toolkit. It's a much newer framework so I haven't really tested it …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@stevemonaco
Comment options

@GamingCity
Comment options

@GamingCity
Comment options

Answer selected by GamingCity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants