Suny
Suny

Reputation: 1175

How to move between a Pivot Control in Windows Phone 8 programmatically

I have a situation where i need to move to different pivots on a Pivot Page in Windows Phone 8 but i am unable to find a way to achieve that.

here is the screenshot: enter image description here

I want to switch to "Map" pivot when i tap on any LongListItem.

C#+XAML+WP8

Upvotes: 3

Views: 1764

Answers (2)

senimii
senimii

Reputation: 247

Pivot controls are largely list-based and pivot along data points. Basically, if you have apps that are driven by list items,then Pivot control is the best bet for you:

Selecting an item in the page described has nothing to do with the Pivot control, Pivot control only helps you in going from List to AddP, via Map.

And to scroll through the pages; see example attachedenter image description here:

Do hope this helps.

Regards

Upvotes: 0

Swift Sharp
Swift Sharp

Reputation: 2623

Actually is quite simple,just what you have to know is to which index you wanna move

 YourPivotControl.SelectedIndex = selectedIndex;

Upvotes: 2

Related Questions