ToolWindow overlaps taskbar if UseHostedAutoHidePopups is set to false

Docking/MDI for WPF Forum

Posted 5 years ago by Niels
Version: 14.1.0601
Platform: .NET 4.0
Environment: Windows 7 (64-bit)
Avatar

Hello,

in our application we are hosting WinForms within the ToolWindows, so we needed to set UseHostedAutoHidePopups="False".

If you run the sample below and if you click on the hidden ToolWindow in the right corner and then move the MainWindow down, you can observe that the ToolWindow overlaps the TaskBar.

How can we fix this behaviour?

<Window x:Class="SampleToolWindowBugForActipro.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:docking="http://schemas.actiprosoftware.com/winfx/xaml/docking" 
        Title="MainWindow" Height="350" Width="525">
    
    <docking:DockSite UseHostedAutoHidePopups="False">
            
        <docking:Workspace>
            <docking:TabbedMdiHost>
                <docking:TabbedMdiContainer>
                    <docking:DocumentWindow Title="DocumentWindow" />
                </docking:TabbedMdiContainer>
            </docking:TabbedMdiHost>
        </docking:Workspace>

        <docking:DockSite.AutoHideRightContainers>
            <docking:ToolWindowContainer>
                <docking:ToolWindow Title="ToolWindow" />
            </docking:ToolWindowContainer>
        </docking:DockSite.AutoHideRightContainers>

    </docking:DockSite>
</Window>

 

Thanks in advance.

Niels

Comments (3)

Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Niels,

I see what you mean.  In order to allow interop controls (like WinForms controls) to work around the WPF airspace issues, we need to put them in special Popups.  That's what happens when you set UseHostedAutoHidePopups="False".  When you leave it the default of true, the auto-hide flyouts are just controls that are part of the main DockSite visual hierarchy and not popups.  Anyhow, the use of Popups means that the popups overlay the taskbar since Popup is topmost by default.  We've made some tweaks to try and alter this behavior though.  If you'd like to try a preview build, please write our support address and reference this thread.


Actipro Software Support

Posted 5 years ago by Niels
Avatar

Hi,

so this will be fixed in an upcoming release?

 

Thanks

Niels

Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Niels,

Yes, we altered code for this for the upcoming build.


Actipro Software Support

The latest build of this product (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.