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

Issue with changing theme dyanamicaly

1 Answer 40 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ganesh Jagdale
Top achievements
Rank 1
Ganesh Jagdale asked on 19 Feb 2010, 09:47 AM
Hi telerik,

I saw ur example in http://www.telerik.com/community/forums/silverlight/general-discussions/urgent-theme-at-runtime.aspx which contain on changing item in comboBox change respective  theme .yes  It is nice
But in that example u write set theme for each control.
Is this possible only one statement will change theme for all control without specifying theme to each control?
like 
StyleManager.ApplicationTheme = new SummerTheme() //  

The statement is works but for intial time but not chaging theme on change of ComboBox.
Is there any to clear first theme apply next theme?

silverlight provides 

 

ImplicitStyleManager.SetResourceDictionaryUri(  obj,  uri_theme );

 

 obj ==> is Framework element means parent element and 
using above statement theme applied for it's children.

I have this situation because I am using CAL in which  multiple module are there..
This all modules are loaded in one parent container like "Grid". Each module contain many telerik controls.
Not possible set all Theme  property of each control.

Pls help out..
 
Thansk
Ganesh

 

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 24 Feb 2010, 09:32 AM
Hello Ganesh,

Thank you for contacting us.

Attached you will find a sample project, in which is illustrated how you can change the theme of a Silverlight application via a ComboBox. There is used a ResetRootVisual() method which creates an instance of MainPage and add it to the RootVisual panel every time the theme is changed.

If you need further assistance please feel free to contact us again.

Kind regards,
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
General Discussions
Asked by
Ganesh Jagdale
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or