You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everybody!
Hope somebody can help me with the following problem.
I've got different DockContents in my project. I need to set the FloatWindow of a specific DockContent
as TopMost when its DockState changes to Float.
So I registered to the DockStateChanged Event the following Handler as follow:
So far everything is working fine when the user switch the above DockContent from DockState.Document to DockState.Float.
But as soon as he has the DockContent docked as DockState.DockBottom or DockTop and he try to switch to DockState.Float, altough the FloatWindow's TopMost Property is correctly set to True, the Window disappear behind other Windows when the Focus is lost.
Also debugging these different cases for many times I still can't see any differences. In both cases all the properties are correct and equal! But I have different behaviors.
I would be very grateful to receive some help resolving this issue. Thanks a lot in advance for your help.
Marco
The text was updated successfully, but these errors were encountered:
You can prevent previously docked DockContents from getting hidden behind the main window when the DockContent state changes from docked to floating by focusing the DockPanel in the DockPanel.ActivePaneChanged event:
dockPanel.ActivePaneChanged += (sender, e) => {
// prevent previously docked floating window getting hidden behind the main window when getting undocked
((DockPanel)sender).Focus();
};
Same thing goes for me, when i'm trying to make Form labeled as DockContent Appear on top of other program's windows.
So basically, whenever parent form containing DockPanel loses it's focus all windows seems to hide themselves behind other windows and i cant find a solution to prevent that
Hello everybody!
Hope somebody can help me with the following problem.
I've got different DockContents in my project. I need to set the FloatWindow of a specific DockContent
as TopMost when its DockState changes to Float.
So I registered to the DockStateChanged Event the following Handler as follow:
So far everything is working fine when the user switch the above DockContent from DockState.Document to DockState.Float.
But as soon as he has the DockContent docked as DockState.DockBottom or DockTop and he try to switch to DockState.Float, altough the FloatWindow's TopMost Property is correctly set to True, the Window disappear behind other Windows when the Focus is lost.
Also debugging these different cases for many times I still can't see any differences. In both cases all the properties are correct and equal! But I have different behaviors.
I would be very grateful to receive some help resolving this issue. Thanks a lot in advance for your help.
Marco
The text was updated successfully, but these errors were encountered: