How do you open a second WPF window without creating a new one.

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2010-06-16T23:22:41Z Indexed on 2010/06/16 23:32 UTC
Read the original article Hit count: 190

Filed under:
|
|
|

In the program I am trying to build, I have a menu button that opens a second window. The user puts information into the second window, presses the "Done" button, and the information is transfered into the main window. The problem I am having is opening the second window. I have both windows build in xaml files in Visual Studio but I can't find a way to show the second window. Using "Window window = new Window" does not fit my needs because 1) I already have the second window built and 2) I have tried this and I cannot figure out how to add children to the window; there is no window.children nor any grid to put the children into. Thank you in advance!

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf