ramdev
ramdev

Reputation: 191

Change MainPage from Content page in Xamarin

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());

Upvotes: 1

Views: 267

Answers (1)

Jason
Jason

Reputation: 89082

just reassign it

App.Current.MainPage = new MyPage();

Upvotes: 1

Related Questions