Chapter 7. Windows Phone Navigation

In this lesson you will learn how to work with the Windows Phone Databound, Panorama, and Pivot application project types. While these three project types enable you to provide a means of navigating among the various parts of your application, they each work in different ways and each provides a unique user experience.

The Databound application project type provides a MainPage.xaml that starts when the application is launched, and a DetailsPage.xaml that displays additional information about a selected item on the MainPage.xaml page.

The Panorama and Pivot application project types contain only a MainPage.xaml by default when the project is created, but you can add a DetailsPage.xaml like the one found by default in the Databound application project type, and link the MainPage.xaml to it.

WORKING WITH DATABOUND PROJECTS

To create a new Databound application project, do the following:

  1. Open Visual Studio 2010 Express for Windows Phone.

  2. From the File menu select New Project.

  3. In the New Project dialog box select Installed Templates

    WORKING WITH DATABOUND PROJECTS
  4. Select Windows Phone DataBound Application from the middle pane.

This will create a new project with the file/folder structure shown in Figure 7-1.

MainPage.xaml

The MainPage.xaml is a ListBox built using records from a dataset. The dataset can be a static set of data held in a .xaml file within the application, or it can be obtained ...

Get Windows® Phone 7 Application Development 24-Hour Trainer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.