ToolWindow.Attach doesn't work as expected

Docking/MDI for WPF Forum

Posted 3 years ago by Erel Uziel
Version: 16.1.0632
Avatar

I'm migrating to the latest version of Docking component.

I want to allow the user to reset the interface.

The code I'm using is:

tool1.Dock(dockSite, Side.Right);
tool2.Attach(tool1);

 I expect tool2 (Files Manager) to be inside tool1. The result is:

Comments (3)

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

Hi Erel,

Yes attaching should make the tool2 be tabbed within tool1.  Let me ask though, are you doing this after the DockSite has been Loaded?  If not, things might not work expected since the UI is not fully realized yet.


Actipro Software Support

Posted 3 years ago by Erel Uziel
Avatar

Yes. It is long after the layout was created. There is a "reset layout" menu option that the user can use to reset the tools windows to their initial position.

It quits LayoutChangeProcessor.Dock because of the 'return' in line 1953.

Maybe I should use a different approach to reset the layout?

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

Hi Erel,

When I try to run that sort of code in a test here, it works fine.  This sounds like something we might have fixed already for the upcoming maintenance release.  This area is one where we made some code updates, I think for this particular reason, where programmatic attaching wasn't working properly all the time.  The related code update will be in the next maintenance release, probably due in the next couple weeks or so.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) 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.