How to Navigate to a page in Windows Phone 8.1 ?

If you are working on the Windows Phone 8.1 or Universal App and wish to navigate to a page from the current page , you can use the Frame.Navigate method.

How to Navigate to a page in Windows Phone 8.1 ?

Below is a sample code snippet demonstrating how to navigate from the current page to the “Page2” in Windows Phone 8.1 XAML Page (Windows Runtime Page).

Frame.Navigate(typeof(Page2)); 

If you want to pass the pass the data from the page to the page 2 , you can use the second parameter of the Navigate method.

Customer emp = new Customer { ID = 100, Name = "Ginktage" };
Frame.Navigate(typeof(SecondPage), emp );

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Reply


x

Interesting BlogPosts to read

Download - Pokemon Go for for Windows 10 (Third Party app)
Pokemon Go is one of the popular AR games for android and iOS devices and now , the game is made ava...
Open Wordpad from command line in Windows
You can use the command "Write" from command line in Windows to open the WordPad application.D:\>...
Popular cross-platform (android and iOS) to-do list app
In this blog post, we will cover some of the popular to-do list app that is available on different p...