I'm having a problem when I try to push a PopupPage with Prism's Navigation Service.
The problem is that, when I call the method 'NavigateAsync("PopupName")', the INavigation result object says that 'Success' is false. If I inspect the Exception, it is throwing the following message:
Cannot remove root page when it is also the currently displayed page.
The strange thing is that despite this, the PopupPage is showing in the device.
I'm not sure if I'm doing something wrong in the navigation:
1 - In the App.Xaml.cs, I navigate to my MainPage:
var oResult = await NavigationService.NavigateAsync("NavigationPage/MyMainPage");
2 - In my MainPage, I have a button which call a process to open the popup, using the Relative navigation:
var oResult = await NavigationService.NavigateAsync("MyPopup");
At this point, is where 'oResult' says that the Navigation was incorrect.
Am I doing something wrong? If I navigate to another page which is not a Popup, it nagivates without problems.