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

Changing MouseOver background of tabitems

1 Answer 176 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
LE DREAU Steeve
Top achievements
Rank 1
LE DREAU Steeve asked on 05 May 2011, 08:40 AM
Hi,

I'm trying to change the background color of RadTabItems using Blend or Visual Studio. I've edited the RadTabControl Template and tried to change colors into it but nothing happens. I've searched in your forums, but no concrete informations.
Can you please help me on this point and show me how we can change the background color of radtabitem when the mouse is over it ?

Thanks

Regards

Steeve

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 05 May 2011, 07:04 PM
Hello LE DREAU Steeve,

In order to implement your scenario you need to edit the RadTabItem ControlTemplate rather than the RadTabControl. Once you edit the RadTabItem ControlTemplate, you can change the MouseOver state resource brushes - TabItem_OuterBorder_MouseOver, TabItem_Background_MouseOver, TabItem_InnerBorder_MouseOver. The TabItem_Background_MouseOver is the brush controlling the background color of the RadTabItem when the mouse is over it.

I attached a sample project to get you started. I hope it helps.

Greetings,
Tina Stancheva
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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TabControl
Asked by
LE DREAU Steeve
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or