Hi,
Also, I believe that this problem could be related to how you are registering your view to the container.
Take into account that as mentioned in this section of the documentation:
When the region navigation service creates a view, it requests a type of Object from the container with a name that matches the one supplied in the navigation URI. Various containers provide different registration mechanisms to support this. For instance, in Unity you will need to register your views against the Object type, map it to your view type, and provide a name that matches the one used in the navigation URI.
In MEF, it is implemented differently and only the contract name is used. Therefore, as long as the view is exported with a contract name that matches the name in the URI request, the view can be successfully constructed.
Hence if you are using MEF you should export your view with a contract name for example like this:
Agustin Adami
http://blogs.southworks.net/aadami
Also, I believe that this problem could be related to how you are registering your view to the container.
Take into account that as mentioned in this section of the documentation:
When the region navigation service creates a view, it requests a type of Object from the container with a name that matches the one supplied in the navigation URI. Various containers provide different registration mechanisms to support this. For instance, in Unity you will need to register your views against the Object type, map it to your view type, and provide a name that matches the one used in the navigation URI.
In MEF, it is implemented differently and only the contract name is used. Therefore, as long as the view is exported with a contract name that matches the name in the URI request, the view can be successfully constructed.
Hence if you are using MEF you should export your view with a contract name for example like this:
[Export("TestPacksView")]
public partial class TestPacksView: UserControl
In the case of Unity container will have to register the views against the Object type:container.RegisterType<object,TestPacksView>("TestPacksView");
Regards,Agustin Adami
http://blogs.southworks.net/aadami