I have integrated Prism for Windows Runtime in my Windows 8.1 app. I have the latest prism installed. In the OnLaunchApplicationAsync in app.xaml,cs, I am navigating to my experience which is "Main".
protected override Task OnLaunchApplicationAsync(LaunchActivatedEventArgs args)
Here when I run the project, I am only getting a blank screen and IntelliTrace shows me "Unable to cast object of type 'App.Views.MainPage' to type 'Microsoft.Practices.Prism.Mvvm.IView". I have abstract partial class PageBase which inherits from
Page and implements IView. My MainPage is implementing PageBase as well.
Design time data is displayed, but not in the runtime. OnNavigatedTo method in my runtime MainPageViewModel, is not getting hit.
I have also ViewModelLocator.AutoWireViewModel="True" in the MainPage.xaml. MainPageViewModel is inheriting ViewModel and implementing IMainPageViewModel. App.xaml.cs is inheriting MvvmAppBase. Everything seems to be perfect. But it is not working.
Any ideas. Appreciate any help.