[Solved] how to handle pivot swipe gesture through button click event in windows phone [closed]


you can easily achieve this via setting the Pivot.SelectedIndex

like

for forward

if(Pivot.selectedIndex < Pivot.Items.Count)
    Pivot.selectedIndex++;
else
    Pivot.selectedIndex = 0;

for backward

if(Pivot.selectedIndex > 0)
    Pivot.selectedIndex--;
else
    Pivot.selectedIndex = Pivot.Items.Count - 1;

13

solved how to handle pivot swipe gesture through button click event in windows phone [closed]