Note that there are some explanatory texts on larger screens.

plurals
  1. POTextBox Style issue for Panorama with dark image background
    text
    copied!<p>I have a WP7 panorama application that uses a dark image for the panorama's background. The issue is when the device is set to light theme. The issue root cause is the Focus state transition animation for the TextBox sets the background color to transparent.</p> <p>Since my panorama is always dark I'd like my textbox to always be white background.</p> <p>First attempt set textbox background to white. FAIL: transition changes background back to transparent when textbox gets focus.</p> <p>Next attempt programmatically set textbox background to white on gotfocus. FAIL: transition changes background back to transparent when textbox gets focus.</p> <p>Next attempt override control template and change transition. FAIL: never could get this happy with WP7, not sure if I used right version</p> <p>Next attempt override control template using Blend 4. FAIL: might have missed something but every state looked correct.</p> <p>I see where lots of others are having this same problem but no here's exactly what you need to do so you don't trip up some minor detail.</p> <p>If you can help us with a solution please do share.</p> <hr> <p>Here's what I tried with Blend 4.</p> <p>Opened my project in Blend 4, selected my textbox, right-clicked on it, chose Edit Template, and then Edit a Copy.</p> <p>Here's where I'm not exactly sure what I need to do.</p> <p>I went to FocusStates, and selected Focused. What I see in the preview pane looks like what I want. A nice textbox with a white background.</p> <p>I look on <a href="http://msdn.microsoft.com/en-us/library/cc645061%28v=vs.95%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/cc645061%28v=vs.95%29.aspx</a> and I see there is a storyboard animation for the various FocusStates and I figure in WP7 there must be one that makes textboxes have a transparent background when they have focus in the light theme.</p> <p>My goal of making my textbox have a white background since I have a panorama with a dark background image has proven difficult to say the least.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload