dewango / BottomNavigationBarXF

Bottom Navigation Bar for Xamarin Forms
MIT License
187 stars 97 forks source link

Programmatically switch between tabs not work correctly. #25

Closed liamwang closed 7 years ago

liamwang commented 7 years ago

Here is my implementation:

void SwitchToSecondPage(object sender, EventArgs e)
{
     var masterPage = this.Parent as BottomBarPage;
     masterPage.CurrentPage = masterPage.Children[1];
}

The content page was switched, but the bottom bar tabs was not changed.

liamwang commented 7 years ago

I hava solved this by calling _bottomBar.SelectTabAtPosition method.

lazmeister commented 7 years ago

As per error #18 , This is still an issue as SelectTabAtPosition method is not defined anywhere. @liamwang