Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Response.Redirect equivalent in Silverlight?

Tags:

silverlight

I need to go another page or url. What is the response.redirect in silverlight?

like image 305
marko Avatar asked Sep 11 '11 12:09

marko


1 Answers

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");
like image 81
Vladimir Dorokhov Avatar answered Oct 14 '22 23:10

Vladimir Dorokhov