问题
I need to go another page or url. What is the response.redirect in silverlight?
回答1:
If you want navigate to another page of Silverlight Navigation Application:
NavigationContext.Navigate( new Uri( "/Views/Home.xaml", UriKind.Relative ) );
where NavigationContext - Page property
If you want navigate to another url:
System.Windows.Browser.HtmlPage.Window.Navigate(new Uri("http://stackoverflow.com"), "_blank");
来源:https://stackoverflow.com/questions/7378037/what-is-the-response-redirect-equivalent-in-silverlight