Hello,
I want to loop through all the dock panels that are in the docking manager in order to remove the hidden panel.
I try to use the PrimarySite Property:
foreach (IDockable document1 in (dockingManager1.PrimarySite as DockSite).Documents)
{
if (document1.DockState == DockState.Hidden)
{dockingManager1.Remove(document1);}
}
I can't seem to get that to work. Any help would be appreciated.
in other words, how can I get a panel from the dockmanager ?
Thanks,
KORT
I want to loop through all the dock panels that are in the docking manager in order to remove the hidden panel.
I try to use the PrimarySite Property:
foreach (IDockable document1 in (dockingManager1.PrimarySite as DockSite).Documents)
{
if (document1.DockState == DockState.Hidden)
{dockingManager1.Remove(document1);}
}
I can't seem to get that to work. Any help would be appreciated.
in other words, how can I get a panel from the dockmanager ?
Thanks,
KORT