Hi,
I am trying to display multiple columns in a combo box using MVVM, but currently I can only show one column by using "DisplayMemberPath" property. ItemsSource property is bound to IList collection exposed as a property in ViewModel class.
I've browsed and found that it's not very straightforward to implement, the suggestions I found are based on creating DataTemplate and in it create separate textblocks for each column within a stackpanel. Then bind the DataTemplate to Combo's ItemTemplate property.
Is the above method the right way of doing it in MVVM. If so then should I create each public property for the columns in my ViewModel class?
Any suggestions please ?