Oct 15, 2014 at 1:19 PM
Edited Oct 15, 2014 at 2:09 PM
I'm developing my first Windows 8.1 Store App with Prism and looked at a bunch of tutorials and got a few things working. But what I have trouble with, is autowiring the ViewModel to the MainPage.
I got other pages working, so it's not that it doesn't work at all.
It seems that I do something wrong with navigation from App.xaml.cs to MainPage.
In MainPage.xaml I got this configuration:
In app.xml.cs I got the navigation to MainPage:
sealed partial class App : MvvmAppBase
private readonly IUnityContainer _container = new UnityContainer();
protected override System.Threading.Tasks.Task OnLaunchApplicationAsync(LaunchActivatedEventArgs args)
It navigates to the page OK, but it doesn't autowire the ViewModel.
What am I doing wrong?
Thanks in advance!