Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load a web page using WPF

Tags:

c#

wpf

I need to load a web page in WPF and interact with the elements in the page. Is there a way to do this with WPF?

like image 282
Luke101 Avatar asked Aug 17 '12 16:08

Luke101


2 Answers

You could try use the WebBrowser control. This basically provides you with a web browser inside your app and you can then load and navigate through web pages.

Just place the control with

<WebBrowser Name="webBrowser" />

and then

webBrowser.Navigate("http://www.stackoverflow.com");
like image 52
Tudor Avatar answered Sep 28 '22 22:09

Tudor


You can use

<WebBrowser Source="http://www.microsoft.com" />
like image 34
Talles Penini Avatar answered Sep 28 '22 22:09

Talles Penini