I need to halt the main thread until some workflow is completed on the opened Window, the opened window has a user control content in which the user enter some data and click the button "next" .
how can i halt the main thread and signal it to continue after the next button has been clicked? I've tryed using AutoRestEvent but the main thread get stucked and the window is frozen.
ShowDialog wont help me, because i want to keep the window visible after the next button is clicked.
public void SomeMethod()
AppWizardStep2 step2 = new AppWizardStep2(ref myParams);
Window myWin = new Window();
myWin.Content = step2;
myWin.Show(); //Halt here
// ...some logic that needs to continue after user workflow is completed on step2 user control
View Complete Post