I have a WPF application built on top of PRISM.
When the user tries to close the application I need to check the dirty status of any loaded views.
I was hoping to enumerate a list of the loaded modules and ask them in turn whether it's OK to exit and save any changes, but I'm having trouble finding a list of references to the loaded modules.
The closest I could find was IModuleCatalog which gives me a list of modules, but not the actual object references these modules
Any suggestions on how I can do this?
Thanks in advance