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

I need to display an html string in a WebBrowser control, but it can have a variable length and not the only one on the screen. Therefore, I need to set the width to match the actual content of the message.

WebBrowser has an ActualHeight property, but this does not produce any results. In addition, as soon as it is displayed correctly, I do not want it to scroll, since the user can scroll it completely from the screen.

Any ideas?

+4
source share
1 answer

I am not 100% sure what you need.

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

I made some of them in the editor for iron7 - this fixes the client scale and disables scaling, but it still has some unwanted side effects.

We hope that upcoming releases of WP7, including IE9 "soon", will improve web browser management.

+3
source

Source: https://habr.com/ru/post/1335454/


All Articles