Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting FloatWindow as TopMost #554

Open
covolmar opened this issue May 17, 2018 · 2 comments
Open

Setting FloatWindow as TopMost #554

covolmar opened this issue May 17, 2018 · 2 comments
Labels

Comments

@covolmar
Copy link

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:

image

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

@lextm lextm added the question label May 17, 2018
@Heiland
Copy link

Heiland commented Aug 22, 2019

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();
};

@ZecosMAX
Copy link

ZecosMAX commented Dec 7, 2021

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

@dockpanelsuite dockpanelsuite deleted a comment from layman6666 Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants