pocheshire / BottomNavigationBar

Bottom Navigation Bar for Xamarin
214 stars 70 forks source link

How to switch current page by PCL programmatically (not user touch)? #49

Closed rc1021 closed 7 years ago

rc1021 commented 7 years ago

Hi, I am new.

In the sample, BottomBar can use OnTabSelected ( user touch & trigger ) to switch current page by position.

but, How to switch current page by PCL programmatically (not user touch)?

this is not work... ((TabbedPage)Application.Current.MainPage).CurrentPage = page.Current;

rc1021 commented 7 years ago

it is not issue, my mistake.