I have the basic Prism/Unity/Xamarin Forms app from the Prism Templates.
If I change the following (add parameter) it fails
public MainPage(INavigationService navigationService)
{
InitializeComponent();
}
container works but getting the navigation service this way causes MainPage to not be found.
Is there a better way for a ContentPage to get the navigation service so a button click can navigate to a new page?
I have also tried to register the navigation service from the OnInitialized as I have found in some samples and that is a compile error now.
Using following packages/versions:
- Prism.Unity.Forms 6.2.0.pre4
- Prism.Forms 6.1.0.pre4
- Xamarin.Forms 2.2.0.45
- Unity 4.0.1
- Windows 10 UWP