We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

What is the purpose of the DockingClientPanel? When do I use this class?


The DockingClientPanel class is intended to serve as a container for the non-dockable controls on non-MDIcontainer forms. When using docking windows in the non-MDI case, all non-dockable controls that were originally intended to be located on the form should instead be placed on the DockingClientPanel. The docking windows framework repositions/resizes the DockingClientPanel in tandem with changes in the host form’s available client area during docking/undocking operations, and thus provides a static surface for hosting the form’s non-dockable controls.

The following sequence illustrates the steps involved in setting up a docking layout using the DockingClientPanel:

1. Add the DockingManager component to the non-MDIcontainer form.

2. Add an instance of the DockingClientPanel control to the form.

3. Resize the DockingClientPanel control so that it is large enough to accomodate the non-dockable controls on the form. Move all non-dockable controls from the form to the DockingClientPanel class.

4. Turn on the EnableDocking property for the applicable controls that still remain on the form. These will be transformed into docking windows.

5. Set the DockingClientPanel.SizeToFit property to True. The DockingClientPanel will now be readjusted to fill the form’s available client rectangle.

Article ID: Published Date: Last Revised Date: Platform: Control:
1039 04/30/2011 07/10/2014 WinForms DockingManager
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon