Persist layout with programatic creating tool windows

Docking/MDI for WPF Forum

Posted 9 years ago by Shawn Kendrot
Version: 15.1.0624

I have an application that uses a plugin model for adding new buttons/tool windows to an application. These plugins are loaded when the application starts and i they have tool windows they are created when a button in a menu bar is clicked. When the application closes we save the layout of the tools to a file. When we start the application we load the layout after loading the plugins. When a button is clicked we create a new window because one has not been created yet. The location of these windows is not where they were previously. Can persisting layout be accomplished when programmaticly creating tool windows?

Comments (1)

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

Hi Shawn,

It can if you consistently Name the tool windows the same when they are created between application sessions.  You also would need to make use of the Lazy Loading feature described in the "Layout Serialization" topic in the documentation.  Those two things should get it working.

Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.