To return an object from a WPF window in C#, you can create a public property in your window class and assign the value to it before closing the window. Here's an example:
main.cs317 chars16 lines
In your main window or viewmodel where you open the window, you can wait for the window to close and then access the object through the property.
main.cs128 chars5 lines
gistlibby LogSnag