This document provides instructions for setting up simple page navigation in a Windows Phone application. It describes adding new pages called "Meals.xaml" and "Beverages.xaml" and changing their titles. It also covers adding buttons to the main page and linking each button to navigate to a different page using the NavigationService. The document is authored by Yasmine Abdelhady and provides a 10 step guide to implementing basic page navigation in a Windows Phone app.
12. 9.
Add a Click event to the button, that when you click on the button a special
event happens, which in our case is to navigate to a specific page. To do
this, double click on the button itself in the design view and it will
automatically create an event handler and take you to the C# page where
you write what happens when the button is clicked. Do the same click to the
second button.
13. 10.
Now is finally time to write the statement of navigation to another page.
for button_meals
NavigationService.Navigate( new Uri("/Meals.xaml", UriKind.Relative));
And for button_beverages
NavigationService.Navigate( new Uri("/Beverages.xaml", UriKind.Relative));