I am making a Universal winrt app using mvvm light. In ViewModelLocator I've registered my view in the builtin NavigationService of mvvm light
SimpleIoc.Default.Register<INavigationService>(() =>
{
var navigationService = new NavigationService();
navigationService.Configure("PreRegisterPage", typeof(PreRegisterPage));
return navigationService;
});
But when I try to navigate to that page using this code,
_navigationService.NavigateTo("PreRegisterPage");
It throws this exception
No such page: PreRegisterPage. Did you forget to call NavigationService.Configure? Parameter name: pageKey
Am I missing something?