I'm looking for a MultiColumn ComboBox solution as well. I've seen a
lot of people talking about using Templates and I have to admit I'm not
entirely comfortable with using Templates yet in WPF.
What I'm looking for specifically is a ComboBox that simply shows a two
column drop down that displays the values resolved from
DisplayMemberPath and SelectedValuePath for each item of the bound
ItemsSource of the ComboBox. Once one of the items is selected I'm
looking for the SelectedValue only to be displayed in the Text area.
Below is a crude diagram to explain what I'm looking for.
|CODE1 | Display value 1 | |
|CODE2 | Display value 1 | |
|CODE3 | Display value 1 | |
I've fumbled around using RelativeSource and a few other things but nothing works so far. If anybody has a clue about different ways to implement this I would
love to hear them. A quick example using templates would be wonderful
but also note that I'm planning probably to make this a reusable
control in our solution since this is a common paradigm in our UI that
I wouldn't want to have to repeat on each Window or UserControl in
View Complete Post