what is the difference between 2 implementations below?
public App()
{
// The root page of your application
MainPage = new Views.MainPage();
}
public App()
{
MainPage = new NavigationPage(new MainPage());
}
if my main page inherits MasterDetailPage, 1st code above will work but 2nd one will return error message telling me that "android only allows one navigation page on screen at a time" when I debug my android app.
public class MainPage : MasterDetailPage
{
MasterPage masterPage;
public MainPage()
{
masterPage = new MasterPage();
Master = masterPage;
Detail = new NavigationPage(new AnotherPage());