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
605
How do I set the z-order of floating panes?
posted

Suppose I have several floating DockAreaPanes, each containing a single DockableControlPane. I allow the user to tile the screen vertically or horizontally with a subset of the floating panes.

It happens sometimes that the z-order of floating panes is wrong, so that part of a pane being tiled is covered by another pane not part of the current tiled group.

How can I set the z-order of floating dock areas? If I remove a DockAreaPane and reinsert at the desired index, it loses its contents.

Thanks

Parents
No Data
Reply
  • 605
    posted

    For the record, I succeeded with the following strategy.

    For each DockableControlPane pane, working backwards:
     pane.Parent.Panes.Remove(pane);
     DockAreaPane dap = new DockAreaPane(DockedLocation.Floating);
     dap.Panes.Add(pane);
     pane.Manager.DockAreas.Insert(dap, 0);

    I disabled events around the loop. There is some flashing which I'll try to reduce.

    The trick is apparently to create a new DockAreaPane rather than manipulate the old one.

Children