I have one DockAreaPane that is context sensitive, which pane is displayed will depending on the current context. The other possible pane's that can be displayed in the DockAreaPane need to remain completely hidden when they are not active.
I see two options:
I would prefer to do #1, can it be done in such a way that tabs are not visible to the user and it looks like there is only one pane in the DockAreaPane? How? Also how does one prevent other panes from other DockAreaPane's being docked on the one DockAreaPane?
If #2 is the only way, is there anything special I should know? I am assuming not.
Sam
The solution I came up with was to use only one DocAreaPane and to swap out the ClientArea panel that it displays. The only catch I found was you need to get the actual size of the old client area panel first, then clear it out, then add the new one and set the size to the old one to make it work.
I found that you can use the Closed property on the panes. When Closed in true, the pane will not be visible. When Closed is false the pane is visible.
My only warning is that setting Closed to true sometimes causes the pane to be removed from the associated DockAreaPane, so you may need to add the pane to the DockAreaPane in that case. I didn't bother investigating that problem in detail so I can't give you any more information about it.
Andy
I have the same issue. I have a context sensitive dockareapane. For some reason, setting the Visible property to false doesn't actually make it disappear consistently.
What gives?