«

»

Nov 06

How can I navigate to a web page in Silverlight?

The following code opens web site in a new window without menu, toolbars and status bar:

string url = "http://www.primozic.net/blog/";
System.Windows.Browser.HtmlPage.Window.Navigate(
  new Uri(url), 
  "_blank", 
  "toolbar=no,location=no,status=no,menubar=no,resizable=yes");

Note: It seams that for some reason Navigate method does not work in Google Chrome. I’ve tried it in version 3.0.195.32.