In my PRISM application I use MEF as a container. Most of my ViewModel are Non-Shared instances, but a couple are Shared due the requeriments (being used among different views).
But in certain moments I need to delete/release those ViewModel instances.
I know that I could make them Non-Shared and use statics methods to share data among the instances, but thats not a clean way to do it.
Is there a way to do it?
But in certain moments I need to delete/release those ViewModel instances.
I know that I could make them Non-Shared and use statics methods to share data among the instances, but thats not a clean way to do it.
Is there a way to do it?