MU
Murugan
Syncfusion Team
December 18, 2006 02:58 PM UTC
Hi Chris,
Thanks for choosing Syncfusion products.
DockingManager.SetDockVisibility method shows/hides the docked control and keeps the DockingStyle also.
To show a docked control DockingManager.SetDockVisibility( ctrl , true );
To hide a docked control DockingManager.SetDockVisibility( ctrl , false );
Here is the code snippet for your query:
private void barItem1_Click(object sender, EventArgs e)
{
if (this.barItem1.Checked)
{
this.dockingManager1.SetDockVisibility(this.panel1, false);
this.dockingManager1.SetDockVisibility(this.panel2, false);
this.dockingManager1.SetDockVisibility(this.panel3, false);
this.barItem1.Checked = false;
}
else
{
this.dockingManager1.SetDockVisibility(this.panel1, true);
this.dockingManager1.SetDockVisibility(this.panel2, true);
this.dockingManager1.SetDockVisibility(this.panel3, true);
this.barItem1.Checked = true ;
}
}
Please use this code and let me know if the issue is resolved.
Regards,
Murugan P.S