Hi ERobishaw,
Sorry for the delay in responding.
You can achieve your requirement using the following code:
[C#]
void dockingManager1_DockVisibilityChanging(object sender, DockVisibilityChangingEventArgs arg)
{
bool flag = false;
DockHost dhost2 = arg.Control.Parent as DockHost;
DockHostController dhc = dhost2.InternalController as DockHostController;
if ((dhc.ParentController != null) && (dhc.ParentController is DockTabController))
{
DockTabController dtc = dhc.ParentController as DockTabController;
DockTabControl tabcontrol = dtc.TabControl as DockTabControl;
TabPageAdv tab1 = tabcontrol.SelectedTab;
tab1.Hide();
foreach (TabPageAdv tab in tabcontrol.TabPages)
{
if (tab.TabVisible == true)
{
flag = true;
break;
}
}
}
if (flag)
arg.Cancel = true;
}
Please refer to the attached sample that illustrates the same:
http://websamples.syncfusion.com/samples/Tools.Windows/F69219/main.htmKindly let me know if this helps you.
We appreciate your interest in Syncfusion products.
Best regards,
Golda