In Silverlight, how to start / go to another page?

In Silverlight, how can I start / go to another page?

+3
source share
5 answers
System.Windows.Browser.HtmlPage.Window.Navigate(
   new Uri( "http://www.google.com" ),
   "_blank"
   );

You can leave the target ("_blank") if you just want to go to the current browser window.

+9
source

To go to another page from another page.

Frame frame =this.parent as Frame;
frame.navigate(new Uri("/Views/Details.xaml"),Uri.Relative);

Please note: you must have a frame already in MainPage.xaml. So other pages just call the frame in the parent

+2
source

,

this.NavigationService.Navigate(new Uri("/OtherPage.xaml", UriKind.Relative));
+1

this.content=new (place the page name which You want to navigate);

           but this code only works while navigate page having in same folder else You have to write like in given below manner

this.Content = new Views. ( , );

         here in place of Views write the folder name where the page having...

Hope it also helps all of you.

0
source

Source: https://habr.com/ru/post/1698694/


All Articles