I have a Window which pop-ups another Window. I want the second Window to be able to return an object to the first Window when a button is pressed. How would I do this?
You can simply call any method of the popup window like this:
int value = 0; if ((bool)poupWindow.ShowDialog() == true) { value = poupWindow.GetValue(); }