Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3045
What is the flag that tell if the pane is auto-hidden?
posted

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.  

Parents
  • 5389
    Suggested Answer
    posted

    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~

Reply Children