Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Navigation Bar appears for few seconds and disappears

$
0
0

I am navigating between Login form and MainPage of application using following code:

Navigation.PushAsync (App.GetMainPage ());

One the MainPage I am trying to remove the NavigationBar using following lines of code:

protected override void OnAppearing()
    {
        base.OnAppearing();
        NavigationPage.SetHasNavigationBar (this, false);
        NavigationPage.SetHasBackButton (this, false);
        ViewModel.RefreshData();
    }

The problem is that NavigationBar appears for few second and disappears. Also the back button remains in the navigation bar.

Any suggestions on how to resolve both of these issues?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>