How to Navigate to a page in Windows Phone 8.1 ?

Your 2020 Plan. Learn 20 minutes a day for 20 days. Online courses from €9.99.

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 );

Leave a Reply

Your email address will not be published. Required fields are marked *