Initalize first page in Xamarin

2017-12-15 09:29:48

EventPage is the RootPage of the application, on appearing eventpage calls loginpage and with a button loginpage in turn calls other pages. My question is, is this a good way to do this?

public App()


Client = new AppIssueClient();

// The root page of your application

MainPage = GetMainPage();


public static Page GetMainPage()


var page = new NavigationPage(new EventPage());

App.Navigation = page.Navigation;

return page;