Reputation: 397
I created a page.i want to change the background of Textbox when theme of emulator is changed to light.The letters cant be visible while changing the themes.is there any solution?
Upvotes: 0
Views: 456
Reputation: 397
We can set a theme as default to our application.When we log in our application the phone theme will be changed to its suitable theme and when we log out change back to original here s the link .
Upvotes: 0
Reputation: 84744
I assume you are referring to TextBlock
rather than TextBox
(as the latter automatically has style support).
You should never declare a TextBlock
without a Style
attribute, such as Style={StaticResource PhoneTextNormalStyle}
. A full list of available styles can be found on MSDN: Theme Resources for Windows Phone
Also of relevance is: How to: Apply Theme Resources for Windows Phone
NB: Due to the way Mango was designed, backing into your application after changing themes will not apply the new theme. You will need to restart the application to see the changed theme.
Update
Based on your screenshots, you have two choices:
Put simply, you can either submit to the theme or force it to remain the way you want it.
Upvotes: 1
Reputation: 3294
If you use the default TextBox control inside Visual Studio it is fully theme aware. If you have set the colours yourself then you need to perform the theme aware changes in code behind.
For more information, please see the following :-
http://www.developer.nokia.com/Community/Wiki/ThemeawareWindowsPhoneapplication
Upvotes: 1