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

Leave A Reply

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

You May Also Like

In this post, you will learn about sync provider notifications in Windows 11 and how to disable or enable it...
In this tutorial, let’s learn how to enable or disable the startup sound in Windows 11. By default, when Windows...
The CameraCaptureTask allows the Windows Phone 7 App to launch the Camera Application . This will be useful when the...