I am writing an MVVM application, and one of the screens is quite large in size. The screen also supports an object that has several lists of other objects that are also edited in the context of a transaction.
I split the views into several user controls. The model is divided into different types of classes. The problem is the ViewModel. Since it aggregates information from several types of objects and makes end-to-end access to many properties, there will probably be several thousand lines of code by the end. None of this code is complicated, it just feels wrong.
Is this an inevitable consequence of the pattern?
Should I look at several ViewModels in this case? Perhaps one for the model class.
How did people handle non-trivial examples in the real world (as opposed to another demo)?
thank
BTW: WPF / Prism / C # / MVVM environment
source
share