Can't disable MasterDetailPage

How to block the master page when I'm at LoginPage?

That's the MainPage calling the HomePage

`public MainPage()
{
        InitializeComponent();

            _menuLista = ItemService.GetMenuItens();
            navigationDrawerList.ItemsSource = _menuLista;

            Detail = new NavigationPage((Page)Activator.CreateInstance(typeof(HomePage)));

        }`

Once it starts if there's no login done, it calls LoginPage

`public HomePage ()
{
InitializeComponent ();

        if (FezLogin() == false)
            Navigation.PushAsync(new LoginPage());

}`

At that page it shouldn't show the masterdetail, but it does

`
public LoginPage ()
{
InitializeComponent ();

    NavigationPage.SetHasNavigationBar(this, false);
    MasterDetailPage masterpage = new MasterDetailPage();

}
`

How can I solve this problem? I tried the "IsGestureEnabled" function but it failed

Sign In or Register to comment.