WPF: weird problem in dataBinding with TabControl
问题 i'm trying to use DataBinding for dynamically populating a TabControl but have a problem; dataBinding runs fine but i would like the content of each TabItem to be independent one from the other. Here is my XAML code: <TabControl DockPanel.Dock="Left" ItemsSource="{Binding OpenChats}"Name="tabChats" VerticalAlignment="Top" Width="571"> <TabControl.ItemTemplate> <DataTemplate > <TextBlock Text="{Binding Name}"/> </DataTemplate> </TabControl.ItemTemplate> <TabControl.ContentTemplate>