WebBrowser doesn't fill the page with content

I set a url to WebBrowser:

<phone:WebBrowser Width="300" Height="300" Source="http://upload.wikimedia.org/wikipedia/commons/e/e7/Mozilla_Firefox_3.5_logo_256.png"/>

but the image appears in the corner. How can I set it to zoom and fill the page with content without white spaces? thanks


I have went through similar situation. The way which worked out for me, includes not only making change on XAML but also one additional step.

Add IsScriptEnabled property to WebBroser as


Add code in cs file, where you have show web browser as

string description = 
    "<script type=\"text/javascript\">window.onload ="
     + " function () {var elem = document.getElementById('content'); "
     + "window.external.Notify(elem.scrollHeight + '');}</script>" 
     +"<div id=\"content\"><meta name=\"viewport\" content=\"width=device-width," 
     + " initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0\" />"
     +"<img src=\"http://upload.wikimedia.org/wikipedia/commons/e/e7/Mozilla_Firefox_3.5_logo_256.png\" />" 
     + "</div>";

No need of source tag in XAML.

Need Your Help

Django ORM: Filter by extra attribute

python django database orm

I want to filter some database objects by a concatenated string.

Oracle SQL SELECT unpopulated records with the “NOT NULL” constraint

sql oracle constraints notnull

In order to retrieve the data I need, I must SELECT records where there is no data. Some of the rows are unpopulated(?).

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.