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
380
Possible Bug
posted

I am attempting to show/hide the Caption based on the docked state, but I am having some difficulty.

Using the "AfterDockChange" event does not appear to be working properly.  When I un-dock the tab from the Dock Manager I get "floating" as the DockState which is what I expect.  However, when I return the control to the Dock it still reports the DockState as "floating".  I see the same behaviour with ToggleDockState and double-clicking.

Am I missing something or is this a bug?

  • 53790
    posted

    Hi again,

    I already create a case in our internal system by your issue with ref. number: CAS-63054-JY0FZV. You can view/check the status.

    Regards

  • 53790
    posted

    Hi again,

    We made some research and this looks like a bug that can be written up.

     

    The PaneEventArgs returns the Pane being repositioned. When the single floating control is docked, the DockAreaPane is moved. This DockAreaPane is what is returned as e.Pane. However, the process of docking a floating control, moves DockableControlPanes to the DockAreaPane for that location. Therefore, when the AfterDockChange event fires, e.Pane is referencing the DockAreaPane that no longer contains the child panes.

     

    One possible solution:  You can get the DockState from the DockableControlPane using PaneFromControl:

    DockableControlPane controlPane = this.ultraDockManager1.PaneFromControl(this.panel1);

    Regards

  • 53790
    posted

    Hi,

    I made one small project to reproduce your question. The event "AfterDockChange" must be occure after the dock status of pane has changed. Unfortunatelly also in my sample the event fired and the pane status is still "Floating". The Pane status will be changed to "Dock" after the finished event "AfterDockChange".

    I`d like to inform you that we still research this issue and we will keep you in touch.

    Thank you very much for your cooperation.

    Regards

    Georgi