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

Docking Manager ''Perspectives''

Thread ID:





46684 Jul 18,2006 04:39 PM UTC Jul 19,2006 11:50 PM UTC WinForms 3
Tags: Tools
David Hayes
Asked On July 18, 2006 04:39 PM UTC

Hi, I have a requirement to implement multiple ''perspectives'' (layouts) that the user can switch between. Each layout will have different controls in different positions. Is there a recomended way of implementing this? My plan was to use Load/Save state in conjuction with SetEnableDocking. What sequence of calls would I need to switch from one persective to another? Regards David Hayes

Joy K George [Syncfusion]
Replied On July 18, 2006 06:23 PM UTC

Hi David, If you need to switch between different layouts with different controls,You should ensure that there present all the controls in dockinglayout before loading the Dockstate using the LoadDockState method. This should be the sequence. 1.EnableDocking for controls which are present in the docklayout which is going to be loaded. 2.Load the layout using the LoadDockState method. You could also save the information about the controls in the same dockstate stream.So it will be easy to create controls before loading the dock state.Please refer knowledge base article for more information. Please let me know,if you need more information. Regards, Joy

David Hayes
Replied On July 18, 2006 07:53 PM UTC

Hi, Thanks for your quick response. Just to clarify the sequence should be: 1. Create controls. 2. Enable docking with mDockingManager.DockControl or SetEnableDocking (what is the difference between these, do you have to call DockControl the first time?) 3. Load the saved dock state What happens to a control when SetEnableDocking(myControl, false) is called? Do I need to make it invisible or is it removed from the host control?

Joy K George [Syncfusion]
Replied On July 19, 2006 11:50 PM UTC

Hi David,

You may use either SetEnableDocking or DockControl method.The purpose is to make the control docked in the docking layout.In other words the control should in control of dockingmanager before you load the dockstate.

There is no need to make the control invisible or removed from the HostControl.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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