WPF - Setting ComboBox.SelectedItem in XAML based on matching object
- by Andy T
Hi,
so, I have templated combobox that is basically acting as a simple colour palette. It is populated with a list of SolidColorBrush objects. Fine.
Now, I have some data that holds the hex value of the current colour. I have a converter that converts the hex into a SolidColorBrush. Also fine.
Now, I want to set the SelectedItem property of the…