I'm trying to use a toggle-box to control the visibility of the docked controlpane. Changing the value of the toggle-box when the user interacts with the conrolpane is what I'm having trouble with. Closing the pane are very straight forward but not the when auto-hiding it. I can't seem to find the flag that says if the pane is just auto-hidden and not really gone from the view. IsInView and IsVisible of the pane are both NO.
Basically, the toggle-box will be checked when the ControlPane are shown or when the COntrolPane collapses because of auto-hide. The toggle-box will be unchecked when user click on the X button.
jquerijero,
When you say a pane is "auto-hidden," do you mean that it is unpinned and not displayed in a flyout? There is not one specific proeprty that indicates this, but you should be able to use a combination of the DockableControlPane's Pinned and IsFlyoutPaneDisplayed properties. The Pinned property will return false when the DockableControlPane is unpinned, and the IsFlyoutPaneDisplayed property will only return true if the pane is unpinned and currently displayed in a flyout. When the pane is unpinned and not displayed, both Pinned and IsFlyoutPaneDisplayed will be false.
Hope this helps,
~Kim~
I am looking for the state that tells if only the tab is showing, so it's unpinned and not displayed. There must be a way to tell that the tab is there and the pane is only in minimized state.
Also, I'm catching the PaneHidden event to toggle the checkboxes. In this event somehow need to know if the Pane is just being Auto-Hidden or the user clicked on the X button.
I think I figured it out. I can use the ControlPane.Closed property to check if the pane is still there. So basically, checking if pane is not there instead of figuring out if it is still there.