Replies: 1 comment 1 reply
-
It's probably a bit late to answer this, but anyway. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hope this make sense!
I'm doing some refactoring on a large WPF application with approx 250 view models. At the moment we are creating child viewmodel withthin existing viewmodels ParentViewModel > creates a new ChildModelA, ChildModelB etc then the ParentViewModel is directly calling methods on the child models - such as createnewmodel, fetchmodel
I now realise that using the eventaggregator and IHandle is probably the better way forward. I'd create a class on each viewmodel for the parameters.
Do I really need need to create a class for each viewmodel so each one handles the correct event from the parent and not get fired into every viewmodel? I've seen examples of adding a profile tag is this a better way forward?
Beta Was this translation helpful? Give feedback.
All reactions