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
245
How to control DockableControlPane behavior in the code
posted

I have written some code to add number of controls into an existing DockManager

 

 

DockablePaneBase[] panes = new DockableControlPane[x];

 

myDockManager.ControlPanes[myPan].DockAreaPane.Panes.AddRange(panes);

All controls appear in the DockArea as expected. 

The problem is they all come up like a stack one above the other virtically.

When drag and drop the control, they can be re-arranged to appear like a TAB.

My question is - can the DockAraaPane be configed to have all its child controls appear like a TAB control in the code?

I also tried the following code:

 

myDockManager.ControlPanes[myPan].DockAreaPane.GroupSettings.TabLocation = Infragistics.Win.UltraWinDock.

Location.Bottom;

 

 

 

 

However, the TABs still come up on the top. 

The following code does work but it affects all DockAreas.  (I have 3 DockAreaPane and I want to see one TAB top, the other TAB bottom).

 

myDockManager.DefaultGroupSettings.TabLocation = Infragistics.Win.UltraWinDock.

Location.Bottom;

Any suggestins would be appreciated.

 

 

 

 

 

Parents
No Data
Reply
  • 5389
    Verified Answer
    posted

    junshanghai,

    In order to add DockableControlPanes as tabs to a DockArea, you need to set its ChildPaneStyle property to TabGroup.

    With regards to your second issue, I was not able to reproduce the problem.  What version of NetAdvantage are you using?  The code I used to get a reference to the DockAreaPane and set its TabLocation and ChildPaneStyle properties is as follows:

                DockAreaPane dap = this.ultraDockManager1.DockAreas[1];
                dap.GroupSettings.TabLocation = Infragistics.Win.UltraWinDock.Location.Right;
                dap.ChildPaneStyle = ChildPaneStyle.TabGroup;

     

    ~Kim~

Children