I would like to get distinct values in my databound combo box
as an example the values it has are: blue, blue, yellow, red, orange
I would like it to just di
Let's say your you have a List values = blue, blue, yellow, red, orange
List values = blue, blue, yellow, red, orange
you can do
ComboBox.ItemsSource = values.Distinct();
or if you are going for MVVM approach you can create a property and bind combo box itemssource with a property like
public List values { get { return value.Distinct(); } }