top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to perform page navigation on Windows Phone 8?

+5 votes
276 views

any body give the code for page navigation ,My application need to navigate from one page to another in C#??

in webapplication we use Response.Redirect(""); but windows phone??

posted Oct 8, 2014 by Sathish Kumar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+3 votes
 
Best answer

Navigation Between Two Pages:

       1  Create a new project by selecting the File | New Project menu command.

       2  The New Project window will be displayed. Expand the Visual C# templates, and then select the      
           Windows Phone templates.

       3 Select the Windows Phone App  template. Fill in the project name as desired.

       4 From the designer view on MainPage.xaml, select page title and change this title text to main page 
          in the Text properties or in the XAML directly.

       5 Right-click your project name in the Solution Explorer, select Add from the menu, and then New 
          Item.

       6 Choose Windows Phone Portrait Page, change the name to SecondPage, and select Add at the         
          bottom of the page.

       7 From the designer view on SecondPage.xaml, select page title and change this title text to second          
            page in the Text properties or in the XAML directly.

In MAIN PAGE Button Doubble click and add the below code:

   private void Button1_Click(object sender, RoutedEventArgs e)
    {
        NavigationService.Navigate(new Uri("/SecondPage.xaml", UriKind.Relative));
    }
answer Oct 9, 2014 by Jdk
Similar Questions
+1 vote

I am using Visual Studio 2013 for developing windows phone application how to test my application any one explain how can i achieve this... thanks in advance:)

+2 votes

I need XAP File for put my own application in my windows phone local store but i dont know where the XAP file placed in my application...........

+1 vote

I need complete code for sending mail(compose mail) from my windows phone application any one help how to achieve this........

+1 vote

I need to know how to achieve the following thigs??
1. Passing a string value using formatted string.
2. Passing multiple parameters.
3. Passing complex object

...