End-users can customize the layout of controls at runtime in Customization Mode. This mode can be invoked as follows:
- In code, by calling the DockLayoutManager.BeginCustomization method.
- By an end-user right-clicking on the layout and selecting Begin customization
When customization starts, the Customization Window is opened. Closing this window finishes customization.
To prevent Customization Mode from being invoked, set the DockLayoutManager.AllowCustomization property to false.
Save and Restore Layout
If an end-user is allowed to customize the layout of dock panels and controls, you’ll probably want to allow these customizations to be saved when the window is closed, and then restore the modified layout when the window is opened again. There are methods that support this functionality. Please refer to Saving and Restoring the Layout of Dock Panels and Controls to learn more.