I got a few dockable panes: some are open and some are close.
I added a button to the GUI to show/hide those panes.I used the DockableControlPane.Closed property to check if a pane is open or not. It works fine for the panes that are pinned (Pinned=true).
However, for the unpinned ones (Pinned=false).I have three panes compressed to the left dock area, and I can click AutoHide to unpin them.When I hit the button to hide, all panes were hided. When I click show, the three compressed panes appear, but in Pin state.
It looks like that i can't just use Closed property for unpinned dock pane. I may need to use Pinned property, but what exactly I need to set to restore the unpinned panes.
Thanks.
First of all, without pinning the unpinned panes, you can only show one unpinned pane at any one time. In your button click code, if a pane is not visible, but it's Pinned property is False, instead of showing it, call Flyout on the pane instead. This will show the unpinned pane as if the user had hovered the mouse over the tab for it.