Empty TabbedMdiContainer

Docking/MDI for WPF Forum

Posted 2 years ago by Yuki
Version: 22.1.3
Platform: .NET 6.0
Environment: Windows 10 (64-bit)
Avatar

Hello,

Sometimes empty TabbedMdiContainer remains.

I'm thinking that it occur when execute "New Vertical Tab Group" and close document window.

I checked it with below source code.

var descendents = VisualTreeHelperExtended.GetAllDescendants<TabbedMdiContainer>(dockSite);

Would you please check it?

Comments (2)

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

Hello,

Yes empty containers can remain after docking operations.  The reason we do that is that they keep track of a "breadcrumb" we can use to restore a docking window back to its exact location for a particular state.  Once a container is no longer needed, it will be removed. 

For instance if a container only has one breadcrumb and that related docking window is either destroyed (removed from the DockSite altogether) or moved elsewhere in the same state, the breadcrumb is no longer necessary and the container is then removed.

This is all by design and allows docking windows to be restored precisely to previous states.


Actipro Software Support

Posted 2 years ago by Yuki
Avatar

Hello,

Thank you for replying.

I understood its reason.

The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.