TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to Resize Windows Phone Web Browser To Fit Content
Charwaka Thupili
Jun 23
2015
Code
1.6
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<
phone:WebBrowser
x:Name
=
"myBrowser"
IsHitTestVisible
=
"True"
IsScriptEnabled
=
"True"
Foreground
=
"Gray"
ScriptNotify
=
"myBroswer_ScriptNotify"
LoadCompleted
=
"myBroswer_LoadCompleted"
NavigationFailed
=
"wbDetails_NavigationFailed"
/>
private
void
myBrowser_ScriptNotify(
object
sender, NotifyEventArgs e)
{
WebBrowser thisBrowser = (WebBrowser)sender;
int
height = Convert.ToInt32(e.Value);
double
newHeight = height * 1.5;
thisBrowser.Height = newHeight;
}
windows Phone
Resize Windows Phone