Nghia Nguyen
Nghia Nguyen

Reputation: 2665

Pivot Control ManipulationCompleted

ManipulationCompleted event doesn't work in WP8 SDK. What would be an alternative way to solve this problem?

Including dectecting swipe right or left, or choose other pivot item by clicking on the pivot header.

Upvotes: 0

Views: 504

Answers (1)

Spaso Lazarevic
Spaso Lazarevic

Reputation: 906

You can use SelectedIndex to identified selected pivot page. For instance, you can use as:

private void Pivot_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
    switch (((Pivot)sender).SelectedIndex)
    {
        case 0:
            ApplicationBar = ((ApplicationBar)Resources["AppBar1"]);
            break;
        case 1:
            ApplicationBar = ((ApplicationBar)Resources["AppBar2"]);
            break;
        case 2:
            ApplicationBar = ((ApplicationBar)Resources["AppBar3"]);
            break;
        case 3:
            ApplicationBar = ((ApplicationBar)Resources["AppBar4"]);
            break;
    }
}

Hope this help

Upvotes: 1

Related Questions