I create two windows in my app class as follows:
var presentationWindow = new PresentationWindow();
var interactionWindow = new InteractionWindow();
MainWindow = presentationWindow;
MainWindow.Show();
interactionWindow.Owner = MainWindow;
interactionWindow.Show();
Another application uses ::ShowWindow to hide my application.
::ShowWindow(PresentationWindowHwnd, SW_HIDE);
This causes the presentation window to hide itself, but it does not hide the interaction window.
I have a number of solutions for making sure both windows hide, solving that is not a problem per say. I would like to know why interaction window is not hidden along with presentation window given that it’s owner property is set to presentation window.
Windows 7 64/32bit
Visual Studio 2010
.NET 4.0
Minimize/Maximize/Close all propagate to the owned windows of a parent; Hide however does not.
There is nothing within the MSDN documentation that leads me to believe it should behave any other way.