First docked window does not get the requested dock size

Docking/MDI for WPF Forum

The latest build of this product (v25.1.1) was released 2 months ago, which was before this thread was created.
Posted 1 days ago by Bas van der Laken
Version: 25.1.1
Platform: .NET 9
Environment: Windows 11 (64-bit)
Avatar

In our WPF application we have a main-view containing a docking host and an initial tool window that takes up the space of the entire window and we use for main view content.

When opening an additional tool window with the ContainderDockSize set and DockSide set to Bottom, the very first time the height of the newly docked window is just a random number. Any subsequent opening of such a tool window, with the exact same ContainerDockSize and DockSide Bottom, ends up being created with exactly the requested height in the ContainerDockSize.

I had found this issue in 24.1.3 and after upgrading to 25.1 the issue still exists.

Comments (1)

Posted 20 hours ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

I tried adding a second tool window docked Bottom in a DockSite.Loaded event handler, and it showed up correctly.  Make sure that you do it as or after DockSite.Loaded fires, since otherwise the DockSite likely won't have been arranged properly and sizes may not be set yet, throwing off docking results.

If that doesn't help, please send our support address a new simple sample project showing the issue so we can debug with it.  Be sure to exclude the bin/obj folders from the .zip you send so it doesn't get spam blocked.  Thanks!


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.