O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting the Active PivotItem

The SelectedItem or SelectedIndex can be used to shift to a particular PivotItem within the Pivot. If the Pivot is populated using its ItemsSource property, then the SelectedItem retrieves the data object rather than the actual PivotItem control.

Note

Setting a Pivot’s SelectedIndex before it has loaded raises an exception. This can be prevented by suppressing the Exception by wrapping the assignment in a try/catch block, or by performing the assignment in a Loaded event handler.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required