I have a 2 part question:
-
Is there anything more to implementing themes than simply placing a
<toolkit:BlahBlahBlahTheme>tag around all your content? -
What is the pattern for switching out themes at runtime? Is there such a thing?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Themes in Silverlight 4 are implemented implicitly by including the styles in your assets and adding them as resources in your app.xaml file.
The best way to see it in action is to grab an existing app with a theme and see how it’s done. Better yet, there are now standard 2010 templates for some new themes, see them here on Tim Heuers blog
http://timheuer.com/blog/
As for loading them dynamically, yes you can
http://www.ganshani.com/2009/12/16/dynamic-theme-in-silverlight-3/