ComBox's DisplayMember doesn't work with themes.

Nov 23, 2011 at 4:07 AM

Hay..

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,

<ComboBox.ItemTemplate>
       <DataTemplate>
                   <TextBlock  Text="{Binding Path=TypeName}" />
       </DataTemplate>
 </ComboBox.ItemTemplate>

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..

Thanks!