There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
[MEF] Navigation to an existing View
When I try to navigate to an existing View, if the view was exported in MEF using a contract name different from its type name, the navigation won't complete successfully and a "ViewAlreadyExistsInRegion" exception is raised.
From my analysis this can be fixed adding an override of the GetCandidatesFromRegion method in the class MefRegionNavigationContentLoader, in order to examine not only the Type name but also the ContractName from the Export attribute.
Attached you may find my proposed override.