Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 5. Understanding Page-Based Navigation > Using the Navigation Service

Using the Navigation Service

Most applications are more complex than just a single page. The page navigation model is really intended to allow the user to navigate through an application. To demonstrate this, create a new Silverlight Phone application and add two new pages. The first page should be a Windows Phone Portrait Page, called PageTwo and the second page should be a Windows Phone Pivot Page called PageThree. The completed project should look like what is shown in Figure 5.1.

image

Figure 5.1 Visual Studio project after adding two pages.

Now open MainPage.xaml and add two buttons named OpenPageTwo and OpenPageThree changing the captions to “Open Page Two” and “Open Page Three,” respectively. You might need to resize the buttons so all of the text is visible. When you are done, the Extensible Application Markup Language (XAML) should look similar to that of Listing 5.1 and the rendered page should look similar to Figure 5.2.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint