In MVVM, can there be only one view for each View Model?

As I read here:

http://msdn.microsoft.com/en-us/library/gg405484(v=pandp.40).aspx

Usually there is a one-to-one relationship between the look and its view of the model.

Does this mean that by design they can’t cope with several types?

+5
source share
5 answers

, . , View ViewModel , , , ViewModel (, , , ). , , XAML, UserControl, ViewModel ( , , ). MVVM .

+2

MVVM () ViewModel (), . ViewModel, , , DataTemplate ( ), ViewModel, , .

, , , , , , MVVM " ".

+2

, , . ViewModel .

+2

. , . - , , . , .

, . , . . , .

MVVM , . , , , , , - .

+1

, "--" .

We had vm warnings, and we wanted to show them in a list on one of our submissions, but also a pop-up notification when there is a new alarm and do it on the main screen. By setting the popup menu data context to vm alarms, we could easily achieve this functionality.

0
source

All Articles