Make the web browser background transparent

I am trying to make the background of my web browser transparent, like wb.setBackground (Color.transparent) in android.

Is it possible?

thank,

Renault

+2
source share
2 answers

The WebBrowser control is not a true Silverlight control, so it does not support the ability to make a transparent background.

Sorry, this is not possible with the available tools. This is a very often requested feature, and therefore it may (hopefully) change in a future version.

+4
source

Yes, according to the Doc, you can change the background brush:

SolidColorBrush scb = new SolidColorBrush(Colors.Transparent);
wb.Bacground = scb;

Or you can make all control transparent

wb.Opacity = 0.0;

But the question is: is this a good idea?

+2
source

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


All Articles