There are:
- two ListViews
- several libraries (imported by using MEF)
Both lists need to get information from a library (one gets it on Loaded event, another - by binding with ItemTemplateSelector), but if there are several libraries with the same Metadata and different versions, dialog "Please choose version to be used" is shown.
The problem is that UI is not blocked when dialog is called with ShowDialog() method. Setting dialog's Owner does not help. So, when window is loaded, there are two "Please choose version to be used" non-modal dialogs.
How can it be fixed?