Thank you for the clarification. You can use RadTabItems
but you cannot use the ItemTemplate
properties in cases when the collection the TabControl
is bound to contains visual elements. The ItemTemplate/ContentTemplate
properties can only be applied to business items.
Basically the ItemsSource
property of the control is exposed to allow you to databind the control to a collection of business items, that have no visual representation
. This is what the ItemTemplate
properties do - define the visual presentation of business items.
When you want to add RadTabItems
you don't have to bind them, you can simply add them to the RadTabControl.Items
Please bear in mind that as in every ItemsControl
, there are two expected ways to add items to the RadTabControl -
by adding visual elements
to the Items
property or by setting the ItemsSource
property to a data collection
. In your case you are adding the items through the ItemsSource
property but using a collection of visual elements, and although the RadTabControl
supports this scenario, it isn't a good practice.
I hope that info helps.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items