0
votes

I have a simple master detail page, but for some reason the master page seems to be contained within the detail view. In other words, the menu starts where the detail navigation bar ends -- I would expect the master page to start at the top of the screen. What's the deal?

Master Detail Page

    public class MasterPage : MasterDetailPage
    {
        public MasterPage(Sdk.Application context)
        {
            Title = "Master Page";

            this.Master = new MenuPage();
            this.Detail = DetailPage();

            IsPresented = true;
        }            
    }


    private NavPage DetailPage()
    {
        var result = new NavPage(new BasePage { Title = "Empty" });

        ... populate page content ...

        return result;
    }
2
Please check your application class, it has to contain MainPage = new MyMasterDetailPage();, but not MainPage = new NavigationPage (new MyMasterDetailPage());. Also, the app theme should be Material.Mikalai Daronin

2 Answers

1
votes

You must set on Android Proyect in your main Activity use AppCompat instead of FormsApplicationActivity so you see the Master get over the navigation bar:

public class MainActivity : FormsAppCompatActivity

Here is a great blog post on how to achieve that!