Web browser control with transparent background

I am working on a Windows Phone 8 application.

This is my code:

I bind the data in XAML:

<phone:WebBrowser  IsScriptEnabled="True"
                                       ScriptNotify="BrowserControlScriptNotify"
                                       ListBoxWebView:WebBrowserUtility.Html="{Binding WebView}"/>

there WebViewis data binded to webbrowser control.

I have this content:

<html><head>{0}</head><body bgcolor=BGCOLOR style=\"margin:0px;padding:0px;\" "

here bgcolor=BGCOLORI want bgcolor to be transparent.

I tried <body style="background: transparent; margin: 0; padding: 0;">but did not work.

+4
source share
1 answer

According to the answer I gave here (and you saw), it is not possible to make the background of the web browser control transparent.

-, HTML, .

:
, , , .
XAML , .
, ( HTML).
, .

+3

Source: https://habr.com/ru/post/1539930/


All Articles