I set up an ItemsControl with the items source set to a List. I then filter this ItemsControl using code like the following:
CollectionViewSource.GetDefaultView(myList).Filter = filterFunction;
This worked as expected. However, I have since changed the items source to a ReadOnlyCollection. The items still show up in my ItemsControl, but the filter is no longer applied.
Changing the Items source back to a List restores the filter functionality. Is this expected behavior? How can I use a filter with a ReadOnlyCollection as the items source?