Hi Suhail,
Thank you for your interest in Syncfusion Products.
I am not much clear about your exact requirement, because when the HostControl of the docking manager is closed all the controls will be closed by default. If your intention is to close the controls when a particular control is closed, it is possible using SetDockVisibility() method.
private void dockingManager1_DockVisibilityChanging(object sender, Syncfusion.Windows.Forms.Tools.DockVisibilityChangingEventArgs arg)
{
if (arg.Control == this.panel1)
{
this.dockingManager1.SetDockVisibility(this.panel2, false);
this.dockingManager1.SetDockVisibility(this.panel3, false);
}
}
Please refer to the below sample that illustrates this:
http://websamples.syncfusion.com/samples/Tools.Windows/F77239/main.htmIf I have misunderstood your requirement, could you please let me know in detail of your requirement so that I could work out in depth and provide you a better solution?
Please let me know if any concerns.
Regards,
Fathima