Q:

Browser Pop-up WIndows and Silverlight OOB

Within the browser I can use this to open a pop-up window:
 System.Windows.Browser.HtmlPage.Window.Navigate(new Uri(uri), "_blank");

How do I do this when running outside of the browser?

A:

In an OOB app, you can use the following work around:
Create a derived hyperlink button like this:
public class MyHyperlinkButton : HyperlinkButton 
{ 
        public void ClickMe() 
        { 
                base.OnClick(); 
        } 
} 

Use that for navigation:
private void NavigateToUri(Uri url) 
{ 
        if (App.Current.IsRunningOutOfBrowser) 
        { 
                MyHyperlinkButton button = new MyHyperlinkButton(); 
                button.NavigateUri = url; 
                button.TargetName = "_blank"; 
                button.ClickMe(); 
        } 
        else 
        { 
                System.Windows.Browser.HtmlPage.Window.Navigate(url, "_blank"); 
        } 
}

see forums.silverlight.net

