I was having this problem as well using this method in a ViewModel rather than in the page and found that the main problem was due to newing and setting .Source in the VM ctor. I moved these few lines of code to the get accessor of the public CollectionViewSource property and it eliminated the exception.

However, filtering is not working still; the items are enumerated and set to a bool value of true is returned for the correct items in the ObservableCollection, but they seem to be ignored, as the list is not filtered. Even calling CollectionViewSource.View.Refresh() makes no difference. :/ Any suggestions?

I have one question.
I use the methode which is a basic app that you can select bystarting a new project. It is named DataBount or …Bound. But i have no idea how i can use your solution for my app.
Please help me. I’m sure that is a long time when you write this but i need your help.