Reputation: 401
I'm trying to make the background of my web browser transparent like wb.setBackground(Color.transparent) in android.
is it even possible ?
thanks,
Renaud
Upvotes: 3
Views: 3185
Reputation: 65556
The WebBrowser control is not a true Silverlight control and so does not support the ability to make the background transparent.
Sorry, it's just not possible with the currently available tools.
It is a highly requested feature though and so this may (hopefully) change in a future version.
Upvotes: 5
Reputation: 14994
Yes, according to Doc you can change the brush of the background:
SolidColorBrush scb = new SolidColorBrush(Colors.Transparent);
wb.Bacground = scb;
Or you can make the whole control transparent
wb.Opacity = 0.0;
But the question is: Is it a good idea?
Upvotes: 2