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

Silverlight Theme Problem

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stephen
Top achievements
Rank 1
Stephen asked on 18 Jan 2012, 02:38 PM
Hi,

We are using PRISM,Silverlight, Unity and Telerik.

When my Bootstrapper runs i set the following Application wide theme:
StyleManager.ApplicationTheme = new Telerik.Windows.Controls.SummerTheme();

The application shell is displayed and the login page is displayed all with the summer theme.

When the user logs in the theme is changed to their preference, also application wide.

Then modules that the user has access to are loaded.

What we are experiencing is that everything loaded prior to login is SummerTheme and new views that are loaded after Login are all the users prefered theme.

When you change a theme application wide should it not change everything that has already been loaded?
Is there a different way to change themes at runtime?

Thanks,

Steve

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 19 Jan 2012, 02:01 PM
Hello,

Unfortunately the theming mechanism requires recreation of the element that it has been applied to. You can look into this blog post to see how it can be done. You can also look into other threads in the forum regarding similar problems.

Hope this helps!

Kind regards,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
Stephen
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or