Webbrowser control with Transparent background

这一生的挚爱 提交于 2019-11-28 13:51:11
Matt Lacey

As per the answer I gave here (and you've seen), it is not possible to make the background of a webbrowser control transparent.

As an alternative, you could use an image of the page without the webbrowser control displayed as the background of the HTML page you're displaying.

A couple of provisos though:
Obviously this wouldn't work with a page that has content that moves or changes.
If the XAML page content isn't fixed then you'll need to create a bitmap of the screen to use as the background.
You may have to be careful with the relative path to the image (from HTML).
This is untested, by me, and just an idea.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!