I am trying to display an icon in the RadTabControl, right aligned, at the tab strip level. I have done this with the RibbonBar using the TabStripAdditionalContent property, but in this particular view, I do not have a RibbonBar. I was wondering if there is a similiar property I can use to achieve this, or using a style / template.
Any help is appreciated.
Thanks in advance
5 Answers, 1 is accepted
Unfortunately this is not what I hoped to achieve. I can get the icon in the individual header just fine, however, I was just looking to place an icon all the way to the right. See attached screenshot for desired result.
I prepared a project for you in which I've edited the default ControlTemplate of the RadTabControl like so (new items added with green background):Please check it out and let us know if it satisfies you. Kind regards,
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I am not so familiar with templates (yet). But in your example project the template takes about 350 lines of code. Besides it is a lot of typing; all those hard coded settings in the style, is it still possible to apply some Theme to the TabControl?
Can't you create a style or template derived from the normal RadTabControl and only add a few extra lines to get the icon on the right side? If so, I would love to get an example.
At the moment the only approach for adding additional content to the RadTabControl is by editing its default ControlTemplate. As we can see how this can be inconvenient, we have logged a feature request in our PITS to add ContentPresenters in the ControlTemplate of the TabControl to support additional content. However, so far this feature hasn't gathered much feedback. But you can vote for it to increase its priority in our to-do list.
As for theming, unfortunately with the current approach, you need to edit the RadTabControl.ControlTemplate defined in the appropriate theme style files. So if you're not using Office_Black, just let us know and we'll send over a modified ControlTemplate for the theme you're using in your application.
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.