Do all the windows without getting everything Is it possible to get some functionality of the owner ?
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
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).
I actually have code that is tracking the window hierarchy independently
owner /
proprietary window , so I probably solve that activation problem So if this simplifies the problem, then I am looking for an alternative answer:
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:
& Lt; window opacity = "0" ShowInTaskbar = "False" allows Transparency = "true" WindowStyle = "none" & gt; 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:
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 (); } 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.
Comments
Post a Comment