Bitesized tidbits for building Modern (Metro) apps.
Tag Archives: ThemeManager
August 4, 2014Posted by on
Windows 8.1 and Windows Phone 8.1 both have this really great theme support that allows you to use ThemeResource as a xaml type, it means if the theme changes, anything using that will change its theme too. It’s actually very cool. What’s not cool though is you can only have two themes (Light/Dark). What if you want other themes? Yes, you can override both of those themes to show your own custom theme, but what if you want a third? A fourth? What then?
Well I’ve created a little helper that helps to alleviate that, and also means that you can swap themes on the fly without having to restart the app. Pretty cool, huh.
July 7, 2012Posted by on
When Windows Phone first came out, setting custom themes was easy. Take a copy of ThemeResources from ‘c:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Design\’ and swap the colours out with the theme colours you wanted. This changed when the 7.1 SDK came out that meant the default colours weren’t overridden. So what then? Retemplate all the controls to use the colours you want? No.