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

How can i set different theme only one component?

2 Answers 133 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Tanser
Top achievements
Rank 1
Tanser asked on 05 May 2014, 01:29 PM
Hi,

Users can change theme on runtime on our project. But i want to RadTitleBard theme doesn't change anytime. Is this possible?

I use the code that below to change application theme.

ThemeResolutionService.ApplicationThemeName = (sender as RadioButton).Tag.ToString();
..
..

and after i set the code that below. But TitleBar theme doesn't change to "TelerikMetroBlue"

radTitleBar1.ThemeName = "TelerikMetroBlue";

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 07 May 2014, 06:59 AM
Hello Tanser,

Thank you for writing.

To prevent a control from changing its theme you can set the following property:

radTitleBar1.ElementTree.EnableApplicationThemeName = false;

I hope this helps.

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Tanser
Top achievements
Rank 1
answered on 07 May 2014, 01:46 PM
Thank you. This is working.
Tags
Themes and Visual Style Builder
Asked by
Tanser
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Tanser
Top achievements
Rank 1
Share this question
or