This question is locked. New answers and comments are not allowed.
Hi, I've seen your demo How to Add Close Button to the Tab Headers and I works fine but I cannot make it works when I inject other views (UserControl) as a tab on RadTabControl.
The simplest way to show this is:
a) that works fine (when using TabItemsModel)
b) that will not work (tabs works and looks normal - without any customization from ClosableStyle)
The simplest way to show this is:
a) that works fine (when using TabItemsModel)
tabControl.ItemsSource = tabItemsModel;
b) that will not work (tabs works and looks normal - without any customization from ClosableStyle)
<telerik:RadTabControl x:Name=
"tabControl"
ItemContainerStyle=
"{StaticResource ClosableStyle}"
>
<telerik:RadTabItem Header=
"One"
></telerik:RadTabItem>
<telerik:RadTabItem Header=
"Two"
></telerik:RadTabItem>
<telerik:RadTabItem Header=
"Three"
></telerik:RadTabItem>
</telerik:RadTabControl>