Rank: Newbie Groups: Member
Joined: 12/1/2014 Posts: 7
|
I understand from some posts I read that the drawing of the browser is done through the GPU. Does this mean there is no way to set an opacity level? I have a need to fade the browser in and out based on the state of an application and would like to know if this is a possibility. I was under the impression this was a WPF control and figured it would behave like all other WPF controls, which can handle this just fine
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
We do not recommend you to do this. Currently this is not possible with the regular "Opacity" WPF property. The reason is the WebBrowser control has its own rendering pipe line and window handle. So it does not participate WPF rendering pipe line. As a result, Opacity will not work as it would on a regular WPF control. Various workarounds have surfaced on the web over the years for similar situations (for example, MS's own IE based WebBrowser control would face the same problem and people were looking for ways to get around it) but we are not aware of a perfect solution.
Thanks!
|