Some pages are too small and hard to read in WebBrowser control, is zooming possible?
If you have control of the html you can set the initial-scale
of the viewport. More background here.
The IE Mobile Viewport on Windows Phone 7
I went with the following hack:
BrowserControl.LoadCompleted += Browser_dohack;
private void Browser_dohack(object sender, NavigationEventArgs e)
{
string html = BrowserControl.SaveToString();
string hackstring = "<meta name=\"viewport\" content=\"width=320,user-scalable=yes\" />";
html = html.Insert(html.IndexOf("<head>", 0) + 6, hackstring);
BrowserControl.NavigateToString(html);
BrowserControl.LoadCompleted -= Browser_dohack;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With