Can someone please help me work out how to open a Dialog Window,
the simplest scenario I can think of is: We have a main window with a button and a Label,
when the user presses that button,
a dialog window with a text box and 2 buttons appear,
one button says submit,
when the user presses submit it closes the window,
it changes the color of the mainwindows background to red,
and takes the input placed in the textbox and changes a label on the main window to that content(I am bot so much worried about this part I get how to do this part),
while the other button just cancels the operation,
Assume that the Datacontext of the MainWindow and DialogWindow is MainWindowViewModel and UserInputViewModel respectivily.
Now on this link Cameron talks about using a service, ie IDialogService and DialogService now could someone please explain to me how to implement those methods in the scenario above? Or if there is another way to do this then please let me know? Please don't link me to any to any pages because I've probably read them all and I can't seem to get a clear understanding of what is meant to be happening? ~Slowly loosing his sanity because MVVM makes things so much harder :(