I have made quite a bit of progress on my first MVVM WPF application, the issue I am now having is I have a Window that has a viewmodel.
This window has a button which opens another window that has another viewmodel.
Imagine a textbox on the first window.
Once the second is opened the user will select a value and click save, this window will close and update the first window with its value.
When pushing save I have an ICommand on the childwindows Viewmodel that calls the SaveMethod. I have the selected value stored in a property on the Child windows viewmodel.
But how do I update the Main Windows textbox with this value? I imagine I bind a property on the main windows view model, but unsure on how to continue.
Please advise, I can provide code examples if needed, but I think I may have explained it well enough,
oh and thanks to everyone at StackOverflow for the help on my questions I have learnt a lot.