Ahmad N. Chatila
Ahmad N. Chatila

Reputation: 134

Navigate to URL from another page in C# Windows Phone

In Windows Forms applications, we usually use the code below to navigate the appropriate URL:

WindowsFormsApplication1.Form1 BrowserWindow = new Form1;

BrowserWindow.webBrowser1.Navigate("http://www.something.com/");

What if I want to do this on a Windows Phone 8 C# Application? How is it possible to achieve this?

Upvotes: 0

Views: 691

Answers (2)

venerik
venerik

Reputation: 5904

In Windows Phone 8 you can use the WebBrowser control as well. However, in stead of provinding a string, you need to provide an Uri.

WebBrowser1.Navigate(new Uri("http://www.something.com", UriKind.Absolute));

Hope this helps.

Upvotes: 0

Simon B
Simon B

Reputation: 1106

It sounds like you want to use a Web Browser Task.

http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394020(v=vs.105).aspx

Upvotes: 1

Related Questions