Oct 30, 2010 at 8:41 AM
Edited Oct 30, 2010 at 8:41 AM
When a TabControl region is the target for navigation, I expected all of the existing tab item views/view-models to be queried if they implemented
INavigationAware. This does not seem to be the case.
I am using Prism v4 Drop 10 and MEF in my navigation scenario. My
TestTabView, a UserControl, has attributes:
I navigate to it like this:
This works, except every time I call RequestNavigate, a new
TestTabView is created and the existing one is never queried via
INavigationAware.IsNavigationTarget. The TestTabViewModel also implements
INavigationAware and it is not queried either. I also tried changing to
CreationPolicy.Shared, but all that does is keep re-using the same view instance and the INavigationAware.IsNavigationTarget is still not queried on the view or view-model.
Any suggestions? The quickstart only shows a ContentControl navigation example.