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
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?
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.