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
295
Internal panes moves out of parent pane
posted

Hi,

I have multiple Tab group panes in a dock manager, now In one of the Tab group pane I have 2 content panes where I can dock or float these 2 panes. I float the Parent Tab group pane and I'm able to float the internal pane outside the boundaries of the parent pane. The internal panes inside a parent should be within the parent when I move those internal panes. Kindly provide me a solution for this issue.

Thanks in Advance!

Regards,

C.LakshmiNarayanan

  • 54937
    Offline posted

    You can think of a ContentPane as analogous to a ToolWindow in VS. There is nothing that ties a specific ToolWindow to be grouped with specific other panes. Likewise in XDM, you can double click on an individual tab and it will be floated (well toggled to its previously location docked/floating based on where it is), you can drag an individual tab, etc. If you want to impose some restrictions on where a pane may be dragged then you would probably need to handle the PaneDragOver event, cast the e.DragAction to the appropriate action, evaluate whether you want to allow the action and then set e.IsValidDragAction to false if you want to prevent the action in which case you will see the No cursor (or whatever cursor you set in the PaneDragStarting event's e.InvalidDragActionCursor.