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

New Post: Possible to register the same ViewModel with Different names?

$
0
0
Hi,

In my opinion the approach you describe in the second post is better than registering each FlowDocumentViewModel with different names. In the first approach you will still have the problem of passing the name of the corresponding FlowDocumentViewModel to obtain it from the container, plus a possible memory leak as the container will kept alive all the FlowDocumentViewModel you created in your application, due to they lifetime being managed by the container (non-shared).

Regards,

Damian Cherubini
http://blogs.southworks.net/dcherubini

Viewing all articles
Browse latest Browse all 1878

Trending Articles



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