I did a search to find out how to change my browser control background. I’m using the Windows Phone 8 SDK and the WebBrowser control.
The reference that I found on this subject seemed to be related to the flicker that shows up when the page is displayed with this control. I think that this was limited to phones using the dark theme. Overall, the flicker or flash that happens for a moment is only a minor problem for me. My problem was more a problem with the content that gets displayed in the control.
- Add CSS style information to the HTML file to hold a background color and a foreground color.
- Change these values at runtime.
That’s it. Here’s some code snippets…
Of course, none of this is very useful for pages that are not local. The flickering can be reduced with the opacity change, but color changes would be complicated without complete control over the HTML file.