After blowing the page about the topic, today we will talk about how the page is navigated, in more cases, our application will not have only one page, there should be N, as we do desktop application development, we may have more than one form in an application (except for very simple programs), We're going to handle the switching between the forms; Similarly, in web development, our Web application may also have more than one page, and we will handle the switch between pages. Of course, in our mobile phone application, we also need this kind of operation, we call it "navigation", as a developer, we control the switch between pages, so we are the "master rudder" of the app.first, how to navigate. A simple way to navigate the page is to use the NavigateUri property of the Hyperlinkbutton control to specify the URI of the XAML file for the target page you want to navigate, and let's try it out in a simple example.
Create a new WP application project, put a Hyperlinkbutton control in the main page, set the value of NavigateUri to/pagesecond.xaml, and then create a new page named Pagesecond.xaml.
The second navigation method is implemented in code, such as a button's Click event.
B. Add the following code to the second page.
Then, you run the program to navigate and see what's in the Output window?
Third, how to pass the parameters between pages.
In Android development, from one activity to another activity, you need to intent object to pass content, but in WP development, we only need to like a Web page in the URI appended to the parameters.
Now, let's change the example we just made, put a textbox on the main page, and we'll pass the input on this page to the second page.
Remove the data from the second page. Remove the data from the second page.
Windows Phone Development (7): When Good master rudder