How to manually advance the tab selection on a tabbed page?

Hi,
How do you manually advance the tab selection on a tabbed page?
Here's the example.

If changeTabselection is true, I will push the page to PageC instead of PageA.
However, the page did push to PageC but the tabbed is still on "A".
How can I change the tabbed to "C"?

On the tabbed page, I override the OnCurrentPageChanged()

bool changeTabselection = true;

protected override void OnCurrentPageChanged()
{
base.OnCurrentPageChanged();

        currentPageName = CurrentPage.Title;

        if (currentPageName == "A")
        {
            if (changeTabselection)
            {
                CurrentPage.Navigation.PushAsync(new PageC());
            }
            else
                CurrentPage.Navigation.PushAsync(new PageA);
        }
        else if (currentPageName == "B")
            CurrentPage.Navigation.PushAsync(new PageB);
        else if (currentPageName == "C")
            CurrentPage.Navigation.PushAsync(new PageC);

    }
Sign In or Register to comment.