I am trying to build some basic navigation in Xamarin Forms using Prism.
In the app.cs I use this navigation to make a MasterDetailPage with a NavigationPage and a “MainPage”.
This works fine.
Now I add some buttons tot the MasterDetailPage to Navigate to Page1 and Page2
Using this code in the MasterDetailViewModel
private void NavigatePage(string name)
Where name is Page1 or Page2 depending on the button pressed.
This works only when navigating from the MainPage.
When navigation from Page1 or Page2 I get redirected back to the Mainpage instead of Mainpage/Page1.
I am using this Mainpage as a dashboard thats why I want it in my navigation stack.
How can I make this work?