Can't create Prism pages using "prism template pack"

0

When creating prism pages in Xamarin Forms app using the prism template pack I get the following error.

The parameter is incorrect.(Exception from HRESULT: 0x80070057 (E_INVALIDARG)

I am using VS2015, Prism Template Pack 1.7 and here's my project structure

enter image description here

xamarin
xamarin.ios
xamarin.android
xamarin.forms
prism
asked on Stack Overflow Nov 7, 2016 by muhammad • edited Nov 8, 2016 by muhammad

2 Answers

2

My mistake was trying to create 'Prism' pages before modifying the app class to inherit from 'PrismApplication'.

I have just noticed that when using the template pack it automatically registers page for navigation within the 'RegisterTypes' method in the App class.

answered on Stack Overflow Nov 8, 2016 by muhammad
0

Adding to Muhammad's answer above, i also had to change the constructor to the following after inheriting from PrismApplication

public App(IPlatformInitializer initializer = null) : base(initializer)
{

}

And also had to change the Application to PrismApplication in App.xaml file also.

answered on Stack Overflow Oct 18, 2017 by grumpy

User contributions licensed under CC BY-SA 3.0