I am making a Windows Phone 8 app.
I have a Panorama page in which I have 6 buttons (main.xaml). I created a new page (extras.xaml) within the same project which has 6 PivotItems. When I click Button 1 in panorama page it should go to the first pivot item in pivot page and when I click button 2 in panorama page it should go to the second pivot item in pivot page. I have been primarily developing in VB.
You should use
navigation parameters
when navigating toextras.xaml
. For button one setpivotItem
(for example) to1
, for button two set it to2
and go on. To set a variable basically add it to your navigation URI (soextras.xaml
becomesextras.xaml?pivotItem=1
).You may check out Navigation Context on MSDN to learn about handling in on
extras.xaml
.