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

Changing the Foreground color of tabs on MouseOver

4 Answers 162 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Shreedhar Kotekar
Top achievements
Rank 1
Shreedhar Kotekar asked on 02 Sep 2010, 10:04 PM
I want to change the foreground color of the tabs when user mouse over them. I am talking about the RadPane and RadDocumentPane in particular. I don't know why changing the foreground color/brush has been made so unobvious & difficult while the background and border colors can be changed readily.

I have been trying since last two days but with no luck. Any help in this regard will be greatly appreciated.

Thanks
Shreedhar

4 Answers, 1 is accepted

Sort by
0
Accepted
Dani
Telerik team
answered on 03 Sep 2010, 12:25 PM
Hello Shreedhar Kotekar,

Thank you for contacting us.

What you need is a custom theme. Please find attached the latest Telerik Office Blue theme included as a custom theme in the project. Please, search for the word "ADDED:" to find the customized spots.

A MouseOver VisualState which animates the Pane Header foreground to Red has been added.

I hope this helps. If you need further help, please let me know, we are ready to assist you.

Regards,
Dani
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
0
Shreedhar Kotekar
Top achievements
Rank 1
answered on 03 Sep 2010, 03:25 PM
Great, your sample works and the same technique works in my app as well. Love you thanks.

I have two followup questions

1. Does the custom theme must be defined in a separate assembly?
2. If I am just customizing the RadPane, do I still need create a copy of the entire style for RadDocking and change only required parts? can I not just edit a copy of style for RadPane or PaneHeader?


Thanks a bunch.

Shreedhar
0
Shreedhar Kotekar
Top achievements
Rank 1
answered on 03 Sep 2010, 04:55 PM
I would also like to know how did you generate the initial "Generic.xaml" file with style of all of raddocking controls and its children and based it on office_blue theme? If you can give me the steps I need to follow to generate a similar "Generic.xaml" based on "Vista" theme how would I do it?

I tried right clicking on the RadDock control and Edit Style > Edit Copy, but it did not create style of other controls like PaneHeader, ToolWindow etc. How did you do it?

Thanks
Shreedhar
0
Konstantina
Telerik team
answered on 07 Sep 2010, 08:00 AM
Hello Shreedhar,

Thank you for contacting us.

Straight to the questions:

1. You can define the custom theme as a style also. You can put it in a merged dictionary or in the same page as the Docking control.
2. Yes, you can just change the required parts, but in that case you will have to put the theme as a Application resource.
3. Once you become a customer you will receive the source code of our controls. When you build it, it will generate all xaml code for all themes.

Hope this information helps. If you have further questions please let us know.

All the best,
Konstantina
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
Docking
Asked by
Shreedhar Kotekar
Top achievements
Rank 1
Answers by
Dani
Telerik team
Shreedhar Kotekar
Top achievements
Rank 1
Konstantina
Telerik team
Share this question
or