Hi
i am little stuck with adding new instances of a usercontrol in TabControl.ContentTemplate?
my Xaml is here
</DataTemplate>
</TabControl.ItemTemplate>
<TabControl.ContentTemplate>
<DataTemplate DataType="{x:Type uc:mytest1}">
<uc:mytest1>
</uc:mytest1>
</DataTemplate>
</TabControl.ContentTemplate>
</TabControl>
i am binding TabControl.ItemSource property to a obserablecollection and in content template i am adding a user control but when this app runs i am getting new item as tabitems but the content page is holding same user control but i want new user controls to be added for each new tabitem.
i am very new to the WPF and may be i am doing very basic mistake, kindly guide me.