I have two ItemsControls, one ListView and one custom control that I am developing.
I set the ItemsControl.ItemsSource property of both controls to the same IEnumerable, in this case List.
I apply a filter to the ItemsControl.Items property of my custom control (this.Items.Filter = myFilter), and my control is updated as expected, showing only the items matching the filter.
However, the ListView, using the same IEnumerable for the ItemsControl.ItemsSource property, is also updated to show only those items that match the filter that I applied to my custom control.
Can someone tell me how to save the filter in my custom control by affecting the items in my list?
source share