Nov 11, 2010 at 5:51 PM
Edited Nov 11, 2010 at 5:59 PM
In Prism there are two techniques for stop displaying a view in a particular region. The first one is calling the
Deactivate method and the other is calling the Remove
method in the Region class. The two techniques causes the same result in the UI. But when you deactivate a view, the view collection do not remove the reference to that view unless you use a particular region behavior named
If you need more guidance on this topic, you could take a look at the
UI-Composition Quickstart as well as in the Stock Trader RI.
Other possible reason for this is that your application keeps a reference to the view in some place after removing it.
I think that you can find the following forum thread interesting: How to Remove A View From Memory When Closed
If you continue experiencing this situation, could you please share the code for removing views in your application?
Hope this helps.