Home > Net > WPF MVVM management view and viewmodel problems
WPF MVVM management view and viewmodel problems
Time:10-16
have been writing the Java before, after the company recently a c # project, are implemented with WPF, I built a MVVM framework, and integrate the MaterialDesign,
Now I encountered the problem is that if there are multiple current window, if I want to create a new window in the viewmodel, and control in addition to the new window all Windows closed, only by creating a viewmodel passes the current viewmodel implementation, so the code dependence is too strong, special mess, if carried by value,
Excuse me, is there any way to realize unified management was carried out on the window the viewmodel and view of public methods?
For c # I know still shallow, what we say the wrong you correct,
CodePudding user response:
The great god can only way ah, searched a lot of can't find the answer,