Creating WP7 Pivot and Panorama Pages

Pivot and Panorama pages make for a great main page for your Windows Phone 7 (WP7). These pages allow you to provide various levels of swiping left and right to provide more capabilities to a single page. The simplest way to take advantage of WP7 Pivot and Panorma Pages is to create a project using the Windows Phone Pivot Application or Windows Phone Panorama Application templates; however, to really understand these pages you need to understand how these page work in order to fully utilize them.

Pivot Pages

The pivot page is similar to using tab on other platforms. It essentially allows you to provide multiple views within a single page. The user can easily navigate between these views by swiping left or right. It is a very natural UI that is very useful for data centric applications. The different views are a very natural way to allow the user to filter data or view similar lists, which makes sense for data intensive apps. To insert a Pivot control into a page you need to understand a couple of elements. The root element of the pivot control is as follows:

<controls:Pivot Title="Page Title">

As you can see the one item you need to define at the Pivot control level is the title. This title is essentially the title of the page provided you plan to use Pivot control to fill the page. Within the opening/closing Pivot control tags you will need to include one or more Pivot Items. Each pivot item is defined by the pivot defined by the following tag:

<controls:PivotItem Header="first">

The Pivot Item defines an individual view within the Pivot control. The one attribute you need to provide for each PivotItem is the Header, which essentially defines the tab name. Next you will want to populate the PivotItem with the content you want to display. The most common control to be included within a PivotItem is a ListBox control; however, you can put just about anything within a PivotItem. The important thing to note is that the PivotItem width is limited to the screen size.

Panorama Page

The Panorama Page is somewhat similar to the Pivot Page; however, PanoramaItems are not bound to the screen width. The Panorama control allows you to create a user interface, which uses the horizontal tab style, but can be far more flexible and immersive. The Panorama control is often configured to use a background image, which scrolls at a slightly different speed from the foreground producing a 2d effect. To get started we first need to create a Panorma control as defined by the following tags:

<controls:Panorama Title="my application">

As you can see you can also define the Title of the Panorama control in the root element. Items within a Panorama are defined similar to those of a Pivot control as shown below.

<controls:PanoramaItem Header="header title">

The definition of a Panorama Item is similar to a Pivot Item in that it includes the Header for the item. Within the Panorama Item you then would need to include whatever controls you want to display within this item. And similar to the Pivot Item it is common to use List Boxes; however, the Panorama includes a couple of features that allow you to expand upon the user interface.


Both the Pivot and Panorama pages provide you with the user interface components necessary to use as main user interface for your application. The Pivot seems to work best for data centric applications such as Email or list based. The Panorama provides similar capabilities; however, since it allows for items to span pages you can use it to display wider information such as Photos or a grid of photos. Both controls provide the capabilities necessary to support your application as the main user interface.

About the Author

Chris Bennett

Chris Bennett is a Manager with Crowe Horwath LLP in the Indianapolis office. He can be reached at

Related Articles


  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: December 11, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Market pressures to move more quickly and develop innovative applications are forcing organizations to rethink how they develop and release applications. The combination of public clouds and physical back-end infrastructures are a means to get applications out faster. However, these hybrid solutions complicate DevOps adoption, with application delivery pipelines that span across complex hybrid cloud and non-cloud environments. Check out this …

  • On-demand Event Event Date: October 29, 2014 It's well understood how critical version control is for code. However, its importance to DevOps isn't always recognized. The 2014 DevOps Survey of Practice shows that one of the key predictors of DevOps success is putting all production environment artifacts into version control. In this webcast, Gene Kim discusses these survey findings and shares woeful tales of artifact management gone wrong! Gene also shares examples of how high-performing DevOps …

Most Popular Programming Stories

More for Developers

RSS Feeds