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

Pivot Load Events

Pivot raises various events to indicate when a PivotItem is being brought into view and when it is being moved out of view.

Best Practice

To improve the performance of your app, use the LoadingPivotItem event to load content on demand. One approach is to convert the content of each PivotItem into a UserControl. You can then subscribe to the LoadingPivotItem event on the Pivot, and then when the event is raised instantiate the UserControl and set it as the PivotItem’s content.

The UnloadedPivotItem event also provides the opportunity to clean up any unneeded resources.

When the user switches from one PivotItem to another, events are raised in the following order:

1. The UnloadingPivotItem event is raised for the first PivotItem ...

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