Custom NavigationService

Apr 11, 2013 at 4:59 PM
I need a custom NavigationService for my application (reason detail here). I'm currently trying to find the "right" way to get it wired up into the Kona/Prism framework.

I need the NavigationService in the OnInitialize method of my MvvmAppBase derived App class. I could just set the NavigationService property before I register it with the IoC container, but I can't seem to find a way to get a hold of the Frame that the MvvmAppBase class is going to use to set Window.Current.Content.

My solution has been to modify the MvvmAppBase class and change the CreateNavitationService method from private to protected virtual. This let's me provide my custom implementation of INavigationService in my App class and have it wired up correctly.

If there's a better way, please let me know. If this is the right way to do things, please consider incorporating the MvvmAppBase change into the library.


-Michael O. Schoneman
Nov 21, 2014 at 12:37 PM
HI there,

Did you ever resolve this at all? I'm currently looking for a solution but have been stuck all morning.

Kind regards

Wayne Lee