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

tab item header foreground

3 Answers 185 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
igal a
Top achievements
Rank 1
igal a asked on 24 Nov 2009, 10:54 AM
when i set the tabitem foreground to black and i click on an other tab it's foreground becomes white,

how can i stop this behavior?

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 25 Nov 2009, 04:04 PM
Hello igal a,

In order to stop this behavior , you have to edit the style of RadTabItem. In this way you can apply  a custom theme to any of  our controls. For more information you can follow the link below:
http://www.telerik.com/help/silverlight/radcontrols-for-silverlight-expression-blend-support.html 

Please find attached an example. If you have any further question please do not hesitate to ask.

I hope this will help you.

Sincerely yours,
Dimitrina
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
Shawn
Top achievements
Rank 1
answered on 13 Dec 2009, 03:20 AM
Hi Dimitrina,

The solution you posted works if the your application has a fixed theme/color but if you allow the user to select from the different Telerik theme options available then this doesn't work (or if it does, I am not understanding how to implement it properly). I would like to see an approach that allows the user to specify either a color or default to the same text color when the Background Visibility is set to Hidden or Collapsed. I believe this would fix the problem most users are seeing. Another option would be to set the color to match the selected foreground color but change the opacity of the foreground to 25-50% so that it appears different.

Thoughts,
Shawn
0
Dimitrina
Telerik team
answered on 16 Dec 2009, 03:29 PM
Hi Shawn,

In order to remove the "animation" behavior from RadTabItem, you will have to modify the control theme. Unfortunately for now, there is no property available which you could use to prevent the animation.

You can edit only the default theme in Blend. You can find the xaml code for the other themes in the folder..\Themes\OfficeBlue\Themes\Office\Blue.

All the best,

Dimitrina
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
igal a
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Shawn
Top achievements
Rank 1
Share this question
or