Webbrowser control with Transparent background

前端 未结 1 607
时光取名叫无心
时光取名叫无心 2020-12-11 19:33

I am working on Windows phone 8 app.

This is my code:

i am binding the data in the XAML:



        
相关标签:
1条回答
  • 2020-12-11 20:15

    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.

    0 讨论(0)
提交回复
热议问题