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.
Thanks,
-Michael O. Schoneman
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.
Thanks,
-Michael O. Schoneman