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
2325
Cannot programmatically resize panes
posted

In my test application I try to resize a pane by setting the panes Size property.  Attached is my source code to illustrate my problem.  What I am trying to do is to be able to shrink  or grow the width of a panel(pane) as needed.  I need this functionality.   I am using 13.1 controls.

To resize I tried this when the user clicks a button it:

        _leftPanelWidth += 100;

    var myPane = ultraDockManager1.DockAreas[0].Panes[0];

    myPane.Size = new Size(_leftPanelWidth, myPane.Size.Height);

But the panes stay in the same spot.

What am I doing wrong?

dockmanagertest.zip
Parents
  • 6158
    Verified Answer
    Offline posted

    Hello.

    Depending on where the control is docked, the Height/Width of the pane is based on the owning DockAreaPane. As such, you need to set the height/width on the owning DockArea which can be accessed via the DockAreas collection on the UltraDockManager, or the DockAreaPane property on the specific DockableControlPane.

    Let me know if you have any further questions.

    Chris

Reply Children