I create my ToolWindows from UserControl and initialize them programmatically, as below:
CustomersWindow = New CustomersWindow(DockManager, "CustomersWindow", "Customers", -1)
CustomersWindow.DockTo(DockManager, DockOperationType.LeftOuter)
Does anyone know how to affect the size of the ToolWindow when it is initially docked? I tried, both before and after the .DockTo call:
CustomersWindow.Size = New System.Drawing.Size(200, 350)
But it had no effect. Perhaps the better questions are how do I detail the splitter positions before the main form is shown? And, how is this managed when the main form is either maximized or minimized? And, what about minimum sizes?
Can LayoutData be persisted to app.config?
Edit:
While studying these issues it occurs to me that management of the ToolWindowContainers and/or DockContainerContainers may be a large part of a successful layout (when using UserControls).
If you have experience managing layouts and are willing to share some ideas, please feel free to do so.
[Modified 6 years ago]