Reputation:
I created this menu that is working well but on some pages that are open not using the menu it is replaced with a back button. Is there anyway to make sure that menu is on all of the pages?
mainpage.xaml
<MasterDetailPage.Detail>
<NavigationPage>
<x:Arguments>
<pages:HomePage />
</x:Arguments>
</NavigationPage>
</MasterDetailPage.Detail>
Homepage.xaml.cs
var masterDetailPage = Application.Current.MainPage as MasterDetailPage;
masterDetailPage.Detail = new NavigationPage((new SearchPage("A")));
Upvotes: 0
Views: 298
Reputation:
replaced PushAsync with replacing the detail section
Navigation.PushAsync(new SearchPage("a"));
var masterDetailPage = Application.Current.MainPage as MasterDetailPage;
masterDetailPage.Detail = new NavigationPage((new SearchPage("a")));
Upvotes: 1