I have two Windows: Window1 and Window2 and I have to pass data between these two. In detail: There are some TextBoxes in Window2, in which the user should enter some code. On clicking the ok-button, the entered data should be added to a list and then displayed in a ListBox. Now my question is how to get the data from Window2 to Window1? Thanks for Your answers.
More generally: what is a good way to share data between different forms/windows of a WPF application.