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
910
Activation/Show issue of DockableControlPanes
posted

I have a ribbon tool combined with docking manager.

When switching from ribbon tab to ribbon tab, some panes are hidden (closed). When switching back to the tab the panes should be shown again, so we call Show() methods on the panes. But additionally we want to activate a specific pane, and here is the problem. The Show() method implicit activates a pane. However, this would be fine, because we activate another pane after this, but this does not work. The Activate() method does not fire the AfterPaneActivated method in this case.

Thanks,

Michael

  • 23930
    Offline posted

    Hi Michael,

     

    Thank you for posting in our forums.

     

    I have tested the described scenario and unless I am missing something the Show method doesn’t activate the hidden pane. I am attaching the sample I used to test this in order to demonstrate this. If you select the third tab, it will hide the lower pane. If you select another tab after that, the pane will be shown, but still the previously active pane is still selected.

     

    Please take a look at my sample and let me know if it is missing something in order to reproduce your issue. If it does, please add it to the sample or alternatively provide me with a sample of your own.

     

    Thank you for your collaboration.

     

    I am looking forward to hearing from you.

    WD_PaneAtivate.zip