Persist layout with programatic creating tool windows

Docking/MDI for WPF Forum

Posted 4 years ago by Shawn Kendrot
Version: 15.1.0624
Avatar

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 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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 (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.