Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: How to instantiate a new view/view-model each time it is navigated to?

$
0
0
My understanding of Windsor is that you must release what you explicitly resolve, but you don't have to worry about releasing (say) a transient that was instantiated during dependency injection, for example.

How does this notion fit in with Prism navigation? Prism presumably instantiates a view during region navigation (and the view in turn has its view-model DI'd via the constructor), but all this is happening "under the covers", so do I need to worry about releasing transient views/view-models when they are finished with, and if so how/where would I do this?

Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>