I am trying to filter out duplicate items from a combo box. The items themselves are not duplicates, but I use a string value called "Name" to populate the combo box, and I only want one instance of that "Name" to show up.
Attached is a somewhat contrived example, but it shows the essence of what my problem is. I have a CollectionViewSource event handler called
CollectionViewSource_Filter where I thought that I could get hold of the ItemsSource or CollectionViewSource and detect whether or not I have that string value already in the combo Box. If you compile and run the code, you see
that all the items from the DataContext appear and duplicates are are not filtered out.
Title="Window1" Height="300" Width="300">
View Complete Post