Home > Software engineering >  Change MainPage from Content page in Xamarin
Change MainPage from Content page in Xamarin

Time:05-18

I am new to Xamarin. How do I change MainPage from ContentPage. Initially when my App load my MainPage is the LoginPage then after I logged in I want my Master page to be my MainPage. How do I do that? Curretly I am using navigation.Pushmodalasync it works but I have a different requirement that I need to set my MainPage.

await Navigation.PushModalAsync(new Master());

CodePudding user response:

just reassign it

App.Current.MainPage = new MyPage();
  • Related