I am trying to learn MVVM and WPF and I am using MVVM Light Toolkit. Here I do not quite understand and, possibly, due to the incorrect architecture of my interface.
What I'm trying to do is pretty simple. By the way, this is a utility application. I want a window that serves as a "controller", so to speak, with a set of buttons. Each button should change the contents of the frame. Example: one button loads the “screen” (or “view” if you do), which allows the user to configure the “Agency”, which is a custom object. Another button loads the list of users from the Agency, which was on the first "screen". This Users view must also be loaded into the same frame. In fact, at the moment the window with all the buttons is really only responsible for loading the “screens” in the frame. The application ball will be in all separate "screens"
What I do not understand is 1) how each screen / view knows about each other, since it depends on the other. It seems that MVVM ViewModel should not know anything. But in my case, I need to transfer information (for example, my agency).
If I can get some clues about what I need to learn, this will be great.
Thanks!
ABR
source share