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
ObservableCollectionView does not remove items which do not match the filter #44
Comments
How about instead:
|
I tried this in my unit tests and it works also (much nicer by the way).
Note: the x.Item change |
hwhoops. Looks good, send me a PR! |
This issues seems to have been reintroduced in the latest source code version. The code fix is gone. |
ObservableCollectionView is deprecated, you want to use CreateDerivedCollection. On Fri, Mar 23, 2012 at 7:38 PM, DamianReeves
|
I've been using the ObservableCollectionView's ability to filter items in the collection but I saw issues where items which were modified in order to no longer meet the filter criteria not being removed. It seems this issue is due to how the ObserveCollectionItemChanged() call is made:
The above will never call updateItem to remove items which don't meet the filter criteria.
This can be fixed by adding the following code as well:
The text was updated successfully, but these errors were encountered: