I am using prism and it's not a Prism problem but I guess how forms works.
I have a master page and when I navigate to another page from the navigation menu It should show the back button on the title bar but it doesnt.
My code from the mainPage.xaml
<MasterDetailPage.Master>
<views:MenuPage/>
</MasterDetailPage.Master>
<MasterDetailPage.Detail>
<ContentPage
BackgroundColor="Transparent" />
</MasterDetailPage.Detail>
Code behind
public partial class MainPage : IMasterDetailPageOptions, INavigatingAware
{
public MainPage()
{
InitializeComponent();
}
public bool IsPresentedAfterNavigation { get; } = Device.Idiom != TargetIdiom.Phone;
public void OnNavigatingTo(INavigationParameters parameters)
{
(Master as INavigatingAware)?.OnNavigatingTo(parameters);
(Master?.BindingContext as INavigatingAware)?.OnNavigatingTo(parameters);
}
}
What do I need todo to make the back button show when navigating to a page from master detail?
Many thanks