Pivot raises various events to indicate when a
PivotItem is being brought into view and when it is being moved out of view.
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
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:
UnloadingPivotItem event is raised for the first