开发者

Changing wp7 webbrowser forecolor

开发者 https://www.devze.com 2023-02-03 05:25 出处:网络
I written code like <phone:WebBrowser x:Name=\"wbLogin\" LoadCompleted=\"wbLogin_LoadCompleted\" IsScriptEnabled=\"True\" Margin=\"0,0,0,34\"/>

I written code like

<phone:WebBrowser x:Name="wbLogin" 
                  LoadCompleted="wbLogin_LoadCompleted" 
                  IsScriptEnabled="True" Margin="0,0,0,34"/>

I want to change th开发者_开发知识库is webbrowser forecolor / page color to be displayed in different color (Cyan in case). So I taken code like,

<phone:WebBrowser x:Name="wbLogin" 
                  LoadCompleted="wbLogin_LoadCompleted" 
                  IsScriptEnabled="True"
                  Margin="0,0,0,34" 
                  Foreground="Cyan"/>

But its not working.

Please help. Thanx in advance to all.


If you want to change anything in the WebBrowser control you'll have to do it in the content (HTML/CSS) that you load into the control.


One option you might have to get what you seem to want: set Opacity of the WebBrowser below 1 so the background of the element the WebBrowser is on top off shines through. This you can then set to your wanted cyan to give the entire HTML content a cyan tint, as if seen through cyan tinted glasses. Might this help, perhaps?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号