c# – Xamarin Forms – Duplicate Toolbar Appearing On Pages Issue

c# – Xamarin Forms – Duplicate Toolbar Appearing On Pages Issue

Because you used the NavigationPage in your App.cs,it will create a toolbar for you:

MainPage = new NavigationPage(new MainHomePage());

try to change it to :

MainPage = new MainHomePage();

or use NavigationPage.SetHasNavigationBar method in your MainHomePage to hide the toolbar :

public App()
    {
        InitializeComponent();
        MainPage = new NavigationPage(new MainHomePage());
    }

public MainHomePage()
    {
        InitializeComponent();
        NavigationPage.SetHasNavigationBar(this, false);
        MasterPage.ListView.ItemSelected += ListView_ItemSelected;
    }

c# – Xamarin Forms – Duplicate Toolbar Appearing On Pages Issue

Leave a Reply

Your email address will not be published.