I assume this request is in reference to the other forum thread posted recently.
In that time, I asked if there is any way to set specific document window on top or not.
I uderstood there is no way.
Can you describe in detail the scenario behind this request?
We are developing application like Visual Studio.
I'm thinking document editor window should be document window, not tool window.
Customer sometimes need to display floating document window on top, and sometimes no need.
I'm thinking the following implementation.
How to judge if window is Actipro floating document window or not?
private void SwitchShowInTaskBarModeMode()
{
MainDockSite.FloatingWindowShowInTaskBarMode = (MainDockSite.FloatingWindowShowInTaskBarMode == FloatingWindowShowInTaskBarMode.Never)
? FloatingWindowShowInTaskBarMode.Default
: FloatingWindowShowInTaskBarMode.Never;
foreach (var w in Application.Current.Windows)
{
if (w is not Actipro floating document window) // How to judge this?
{
continue;
}
w.Owner = (MainDockSite.FloatingWindowShowInTaskBarMode == FloatingWindowShowInTaskBarMode.Never)
? Application.Current.MainWindow
: null;
}
}
[Modified 2 years ago]