Any way to set the WP7 Webbrowser control height Dynamically and lock scrolling?

前端 未结 1 1382
北荒
北荒 2021-01-14 01:42

I need to display a html string in a WebBrowser control, but it can be of variable length, and isn\'t the only thing on the screen. So, I need to be able to set the width co

相关标签:
1条回答
  • 2021-01-14 02:19

    I'm not 100% sure what you need.

    But you can use: - normal XAML to set the external height and width of the webbrowser - some header tags to achieve some fixing of the web-browser's client height and width - see http://blogs.msdn.com/b/mikeormond/archive/2010/12/16/displaying-html-content-in-windows-phone-7.aspx including the comments at the bottom

    I've done some of tis in the editor for iron7 - this fixes the client scale and disables zooming - but it's still got some unwanted side effects.

    Hopefully the upcoming WP7 releases - including IE9 "soon" - will make the web browser control much better.

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