.net - Window owner in WPF without always-on-top behaviour -
Do all the There are two windows, window A and window B. I want to make it so that the selection of any one leads them to the top of other applications, but can either overlay someone else (in reality, there are only two, but they should behave like this.) If I set A from window B to I actually have code that is tracking the window hierarchy independently How do I really "When this window becomes active by the user, the windows Bring a specific set of All I have is an app for z-order just by protecting my existing z-order relative to each other? " A possible solution will be the hidden window of all the windows on your app. You will declare something like this: Startup Yuri from your App.xaml Take care to remove and you In App.xaml.cs, you will override OnStartup to see something like this: One more difficulty will be how do you want to close the actual application. If one of these windows is considered a main window, you can turn shutdown mode off only on shutdown mode. OnMainWindowClose and then set either the menundo property from those windows. Otherwise, you will need to determine that all windows are closed and they explicitly call shut down. windows without getting everything Is it possible to get some functionality of the owner ?
owner , then switching on both sides of the stretch will be of other applications (which I want), but B will always have to be placed at the top of A ( Which is not me Should).
owner /
proprietary window , so I probably solve that activation problem So if this simplifies the problem, then I am looking for an alternative answer:
& Lt; window opacity = "0" ShowInTaskbar = "False" allows Transparency = "true" WindowStyle = "none" & gt;
Start safe override zero (startup eventsErgus E) {hidden main window window = new HiddenMan window (); Window.Show (); Window 1 a = new window1 (); One. Owner = window; One.Show (); Window 2 two = new window 2 (); two. Owner = window; Two.Show (); }
Comments
Post a Comment