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
165
Fill Area
posted

I'm quite new to the DockManager and I'm stuck on a designer problem. As shown in the samle "Docking Demo CS" I want to place a panel left and a panel right, filling up the space left.

So I added a control and docked it left, and another control and docked it top as tabgroup (as in the sample). But I can't get the second control to fill up the space left.

In the sample I found the line 1585 "this.windowDockingArea8.Dock = System.Windows.Forms.DockStyle.Fill;"

I copied the line, replaced area8 by area2 and copied it in the constructor after "InitializeComponent()" and I finally received the layout I wanted. Then I moved the line into the designer.cs and it didn't have any affect on the designer and didn't even work when starting the project.

So my questions are:
1) Where/How can I set the Property "Dock" of the area? I can't see it anywhere in the property window!
2) Why does the line hasn't any affect putting it into the "InitalizeComponent()" method?

It put two forms, showing the problem here: http://www.krasinger.at/public/DockFill.zip

Parents
No Data
Reply
  • 5389
    posted

    tkrasinger,

    The line that you are referring to is a line of code that is generated by the UltraDockManager internally when you set the component's LayoutStyle to FillContainer.  You won't find the Dock property anywhere in the property window because it is on the DockableWindow object, which is also created internally when you dock controls in the UltraDockManager.  So rather than try to set the DockableWindow's Dock property, try setting the UltraDockManager's LayoutStyle property to FillContainer.  This will force the last pane that you docked to fill the available space.

     

    ~Kim~

Children
No Data