Blog of Dan Slightam, containing my thoughts, comments and questions. RSS Feed


Dynamic Theming Example using Silverlight 4 Implicit Styles
I did some Silverlight 4 context menu (right-click) research recently.  It led me to create the attached sample application.  This simple app uses the Windows 7 and Cosmo (aka Metro) Silverlight 4 themes that Tim Heuer published on his blog.  This app simply makes them dynamically switchable at runtime.  It uses the most simple and standard ways of doing so with the new support in Silverlight 4.
 
I thought it might be a useful addition to my last post and maybe a starting point for anyone that needs to theme their SL4 app. 
  • Many, but not all, of the controls on the single View in this app are implicitly styled and therefore they can be dyamically styled (at runtime).   However, the controls that have a static reference to a non-implicit style do not change dynamically (i.e. browser buttons, but what is a browser button in Metro)
  • To apply a theme the implicitly styled controls, choose a theme with the combobox or right-click to use the context menu.
  • To see the styles that are static, change the theme that the application starts-up with. 
 
 
Posted by Dan Slightam | 1 Comments | Trackback Url | Bookmark with:        
Tags: Silverlight, Work

Links to this Post

Comments

Name:
URL:
Email:
Comments:

CAPTCHA Image Validation