This repository has been archived by the owner on May 1, 2024. It is now read-only.
How to switch TabbedPage on Login #14550
Unanswered
chimditruvn
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys. I have:
MainView.xaml
<TabbedPage> <views:Page1 Title="Page1" IconImageSource="homeicon" BackgroundColor="#fff"/> <views:Page2 Title="Page2" IconImageSource="order" BackgroundColor="#fff"/> <views:Page3 Title="Page3" IconImageSource="ads" BackgroundColor="#fff"/> <views:Page4 Title="Page4" IconImageSource="usericon" BackgroundColor="#fff"/> </TabbedPage>
--> picture 1
I have login page (outside TabbedPage), I write ApiService for it. I login ok, after login I want to redirect the page to Page4 (located inside TabbedPage)
if (response.IsSuccessStatusCode) { var responseBody = await response.Content.ReadAsStringAsync(); App.Current.MainPage = new Page4(); }
I redirect to the Page4 in the TabbedPage. ---> Ok, but it lost the tabs below (picture 2).
Can anyone give me a clear way to solve the problem? Thank you
Beta Was this translation helpful? Give feedback.
All reactions