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
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