Overriding themes in Windows Phone 7

Is there a way to get controls to use only the Dark or Light theme? I am working on an application that is mostly dark, we have dark user backgrounds. All text blocks are processed, they are always white. But buttons, text fields, check boxes, radio buttons. All of them turn black when the phone theme is set to light, and they are barely noticeable.

The problem is that I found that I was going to combine to handle every control that looks at each of its states. EG, in the "Light" topic, the text of the buttons turns black and white only when pressed. Is there a way that I can get buttons to use only a dark theme? Besides, what is the actual theme setting for the phone?

Thanks.

+6
windows-phone-7
source share
3 answers

I'm afraid you just need to manually paint them. In Blend, this means clicking "convert to local value" for each of the properties you care about.

At least this is what I did - hope someone else has a more pleasant answer!

+1
source share

Either use features such as PhoneForegroundBrush to automatically switch with a theme change or manually (explicitly) set color values.

0
source share

Check out WP ThemeManager by Jeff Wilcox - https://github.com/jeffwilcox/wp-thememanager

It is also available as the NuGet "PhoneThemeManager" package.

0
source share

All Articles