views:

100

answers:

1

Hello,

in my ComboBox I see 3 times this: MyNameSpace.ViewModel.CustomerViewModel ??

Actually this code worked but now don`t know what I changed:

      <ComboBox  DisplayMemberPath="{Binding Path=CustomerName}" SelectedIndex="0" ItemsSource="{Binding CustomersViewModel}" />

Customers is a ObservableCollection

The same code works fine with a ListBox just using DisplayMemberBinding instead of DisplayMemberPath.

What is wrong?

+1  A: 

DisplayMemberPath takes a path, not a Binding. So just set DisplayMemberPath="CustomerName".

Josh Einstein
damn your right, that was it what I changed lol ;P thx!
msfanboy