UWP Pivot, determine which PivotItem is clicked

You can use the SelectionChanged event of the pivot:

private void Pivot_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
    if (e.AddedItems.Count > 0)
    {
        PivotItem selected = e.AddedItems[0] as PivotItem;
        Debug.WriteLine("selected pivotitem: " + selected.Header);
    }
}

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top