Bug explanation
When using this style of code...
<TabControl ItemsSource="{Binding Items}"
SelectedItem="{Binding ActiveItem}"
DisplayMemberPath="Name">
The tab header is displayed as the Name (or possibly ToString) of the bound model item.
The workaround is to specify the Header template....
<TabControl ItemsSource="{Binding Items}"
SelectedItem="{Binding ActiveItem}"
>
<TabControl.ItemTemplate>
<DataTemplate >
<Viewbox
Height="Auto">
<TextBlock Text="{Binding Name}"/>
</Viewbox>
</DataTemplate>
</TabControl.ItemTemplate>
Version
4.5.0
Bug explanation
When using this style of code...
The tab header is displayed as the Name (or possibly ToString) of the bound model item.
The workaround is to specify the Header template....
Version
4.5.0