Is it possible to get some of the functionality of Window.Owner
without getting all of it?
There are two windows, window A and window B. I want to make it so that selecting either one will bring them on top of other applications, but either one can overlay the other. (In reality there more than just two, but they should all behave similarly.)
If I set window B's Owner
to A, then switching to either window will bring both in front of other applications (which I want), but will also force B to always sit on top of A (which I don't want).
I actually already have code which is tracking the window hierarchy independently of Owner
/OwnedWindows
, so I can probably extend that to sort out the activation problem. So if that simplifies the problem, an alternative answer I'm looking for is:
How do I actually do "when this window is activated by the user, bring a specific set of windows (all the others in the app) to the Z-order just below me, while preserving their existing Z-orders relative to each other"?