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
2925
Controlling the fill pane
posted

Controlling the fill pane

I have a dock manager, which (simplified) has 2 dock panes. One is docked left, and the other docked right. The pane on the right is the fill pane, so if I resize my form, the pane on the right resizes, and the pane on the left stays the same size.

However, if I close the pane on the left, save my layout (with the pane saved with size, but closed), then restore my layout, it seems to switch the fill pane to the left dock. So if I unclose my left pane and resize my form, now the pane on the left resizes and the pane on the right stays the same width.

It took me a long time to get this far (the pane on the left was restoring with 0 width because pane on the right was taking up the full width of the form, and so any attempt at setting the size of the pane was being ignored).

So how can I control which pane is the fill pane? Is it to do with the order in which the panes are restored? Or is there any way of changing this at runtime?

Thanks.

  • 29065
    Offline posted

    Hello and thank you for reaching out. It sounds like you would have to remove the right pane too and add them in the same order again. Since your closing the pane before saving the layout isn't going to detect what you had previously. Here is a list of things the layout saves

    www.infragistics.com/.../windockmanager-save-and-load-dock-settings

    • When the panels are being created dynamically, you will need to set a unique name on the Panel for the UltraDockManager to retain its position.

    Let me know if you have any questions.