Reputation: 25959
Is there a way to make the controls only use the Dark or Light theme? I'm working on an application that is mostly dark, we have some dark custom backgrounds. All the textblocks are handled, those are always white. But buttons, textboxes, checkboxes, radiobuttons. All those become black when the phone's theme is set to light, and they are barely visible.
The problem with this is that I found myself going to blend to handle the way each control looks on each of it states. E. G., in the Light theme, buttons text become black, and white only when pressed. Is there a way I can make the buttons only use the Dark theme? Disregarding what the actual theme setting for the phone is?
Thanks.
Upvotes: 6
Views: 2976
Reputation: 2129
Check out WP ThemeManager by Jeff Wilcox - https://github.com/jeffwilcox/wp-thememanager
It's also available as a NuGet package "PhoneThemeManager"
Upvotes: 0
Reputation: 5665
I'm afraid you just have to colour them all manually. In Blend, this means clicking "convert to local value" on each of the properties you care about.
At least, that's what I did - hopefully someone else has a nicer answer!
Upvotes: 1
Reputation: 1178
Either use things like PhoneForegroundBrush to automatically switch with the theme change or manually (explicitly) set color values.
Upvotes: 0