This is a migrated thread and some comments may be shown as answers.

Changing Tab Control Background to Gradient

3 Answers 81 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 11 Dec 2009, 03:53 PM
Is there an easy way through XAML or code to change the background for the Tab Control (the is behind the Tab Items) to a gradient brush? I can break out the control template in Blend (and can actually set the fill for rectangle), but it becomes overbearing. It's the only property that I want to change on the control itself.

3 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav
Telerik team
answered on 11 Dec 2009, 04:42 PM
Hello Dennis,

 You can use the

BackgroundVisibility="Collapsed"

property to hide the background behind the items. Then anything you put behind the TabControl will be visible, you can put the gradient there.

Unfortunately there is no property that changes the brush directly.

Greetings,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Dennis
Top achievements
Rank 1
answered on 11 Dec 2009, 04:44 PM
Is there why to do it through a Style/Setter without redefining the whole ControlTemplate for the RadTabControl?
0
Miroslav
Telerik team
answered on 11 Dec 2009, 05:31 PM
Hi Dennis,

If you ask about the BackgroundVisibility property, it in fact is a property on the RadTabControl and can be set in a style without editing the ControlTemplate.

Unfortunately the new gradient color will be part of the element that is behind the RadTabControl and it will not be possible to include it in the TabCotnrol Style.

Best wishes,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TabControl
Asked by
Dennis
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Dennis
Top achievements
Rank 1
Share this question
or