1

I've built an example with web-browser in windows phone 7. When I load an html file which created by myself, I can double click on web-browser to zoom in/ zoom out the content. But, when I load an web-page (ex: google.com) I can't. I uploaded my example to my skydriver account. You can't get it at http://cid-b65eb4d185de7cfc.office.live.com/self.aspx/.Public/Shared/Sandbox.WebBrowser.zip

If you known the reason why, please help me.

Matt Lacey
  • 65,560
  • 11
  • 91
  • 143
Nguyen Minh Binh
  • 23,891
  • 30
  • 115
  • 165
  • Are you wanting to control the zooming through code? If so, see http://stackoverflow.com/questions/4500062/wp7-webbrowser-control-zoom – Matt Lacey Jan 26 '11 at 12:24

1 Answers1

3

I think the reason lies in the meta tags within the HTML headers from Google.

I'd guess that Google have fixed the viewport to not allow zooming:

<meta name="viewport" content="user-scalable=no" />

See this post http://blogs.msdn.com/b/mikeormond/archive/2010/12/16/displaying-html-content-in-windows-phone-7.aspx

Stuart
  • 66,722
  • 7
  • 114
  • 165