I cannot seem to get navigation to work with unity.
I register my view:
this.regionViewRegistry.RegisterViewWithRegion("MIPRegion", typeof(Views.Designator));
Then I try to make the request:
this.regionManager.RequestNavigate("MIPRegion", new Uri("Designator", UriKind.RelativeOrAbsolute));
However, OnNavigatedFrom in this View Model NEVER gets called.
If I have one region that 10 different views can display in, do I have to call RegisterViewWithRegion() for all of those views and that region for navigation to work? And if so, how do I prevent the view from being activated with RegisterViewWithRegion. Whenever I use RegisterViewWithRegion, it automatically displays the view in it. Thanks for any help.
Edit: I forgot to mention, a System.Object is getting added to the region after RequestNavigate() gets called. But that is all that happens.
I register my view:
this.regionViewRegistry.RegisterViewWithRegion("MIPRegion", typeof(Views.Designator));
Then I try to make the request:
this.regionManager.RequestNavigate("MIPRegion", new Uri("Designator", UriKind.RelativeOrAbsolute));
However, OnNavigatedFrom in this View Model NEVER gets called.
If I have one region that 10 different views can display in, do I have to call RegisterViewWithRegion() for all of those views and that region for navigation to work? And if so, how do I prevent the view from being activated with RegisterViewWithRegion. Whenever I use RegisterViewWithRegion, it automatically displays the view in it. Thanks for any help.
Edit: I forgot to mention, a System.Object is getting added to the region after RequestNavigate() gets called. But that is all that happens.