INavigation service becomes invalid


We use PageViewModel as a base for almost all our VMs. I initially saw this happen on Windows 8.1 app, where sometimes when we would go to navigate, the service IsValid would be false, Frame would be null and it would not go anywhere. We solved this by adding our own property, that just gets INavigationService from the container.

I again have seen this happen on WP8, not sure what exactly gets it to that state, sometimes its after using the back button to go back, but I have also seen it where on first launch of the app on our first page it starts out not being valid.

Is there something I'm not handling right that is breaking this in your PageViewModel... seems odd that adding my own from container would be any different than that one.



ipjohnson123 wrote May 18, 2014 at 6:26 PM

Hi Kyle,

I can't say I've ever seen this happen but the next time it happens can you check the log file in the log folder for the app. I'm hoping that there is some info in there to help explain whats happened.

I think for 4.0 I'm going to revisit the Navigation model and see if I can simplify it now that Windows 8.1 & WP 8.1 have been combined.