Hello,
My Tab control configuration looks like this, its data bound to a ObservableCollection. The collection contains object of type UserControl with couple of properties. One property is QueryViewName which I wanted to display as tab item header.
I'm able to achive this using DisplayMemebrPath attribute, however its not working with HeaderTemplate (you can see the commented code here).
I would like to do it via HeaderTemplate, since I wanted to make the header editable. Any thoughts?
<
telerik:RadTabControl ItemsSource="{Binding Path=Queries}"
DisplayMemberPath="QueryViewName"
>
<!--<telerik:RadTabControl.ItemContainerStyle>
<Style TargetType="telerik:RadTabItem">
<Setter Property="HeaderTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock Text="{Binding QueryViewName}"/>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</telerik:RadTabControl.ItemContainerStyle>-->
</telerik:RadTabControl>
Regards,
Saravana