With MVVM, does each UI window have its own ViewModel?
Posted
by j0rd4n
on Stack Overflow
See other posts from Stack Overflow
or by j0rd4n
Published on 2010-05-07T16:55:27Z
Indexed on
2010/05/07
16:58 UTC
Read the original article
Hit count: 257
When I'm designing multiple views under the MVVM pattern, does each view get its own ViewModel or do they all share the same one? I understand that this is ultimately a flexible decision, but what is the best practice?
My gut tells me to have a ViewModel for each view (i.e. each separate UI window). All of the blog examples of MVVM show a single view but not much beyond that.
© Stack Overflow or respective owner