ComBox's DisplayMember doesn't work with themes.

Nov 23, 2011 at 3:07 AM


I am using the BureauBlue theme for my WPF application. I want all ComboBoxes to have both ValueMemberPath and DisplayMemberPath.

But with this theme, the ComboBox displays "System.Data.DataRowView" instead of the DisplayMember on the drop down menu. So I used the,

                   <TextBlock  Text="{Binding Path=TypeName}" />

But "<TextBlock Text="{Binding TypeName}" />" doesn't show anything without ComboBox's DisplayMemberPath.
But with DisplayMemberPath it shows correctly. But gives an error message "Cannot set both DisplayMemberPath and ItemTemplate".

What is this? Please help me..