I have a rather simple windows form with 3 controls (panels) and a WindowDockManager.
The first panel is not docked with the windowdockmanager, but instead is docked with the windows form to fill to top portion of the form. This "header" panel is a fixed height and will not change when the user resizes the form.
The second two panels are docked with the WindowDockManager both initially below the first panel.
1. How to I ensure that the 1st panel always covers the entire top of the form? The WindowDockManager docked panels cannot be docked to the right or left of the "header" panel.
2. When I float both panels and then re-dock one of them, there is an unsightly gap between the "header" panel and the newly docked window. How can I eliminate this gap?
I would recommend setting the dock of the 'header' panel to Fill instead of Top. This will ensure it always covers the entire area of the form, unless panels are docked and pinned. Then to prevent all panels from docking to the left or right, on the DefaultPaneSettings object, set AllowDockRight and AllowDockLeft to False. If you want to prevent this on only certain panes, you can set these properties on the Settings object of the panes in the ControlPanes collection of the manager.