This is a migrated thread and some comments may be shown as answers.

DockPanels with the same width

1 Answer 40 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Evellyn
Top achievements
Rank 1
Evellyn asked on 13 Apr 2009, 02:02 PM
Hello
In my app, I add the DockPanels dinamically to the DockingManager...
How can I do to these panels have the same width?
I tried this:
dockingManager1.Controls[x].Width = (dockingManager1.Width / dockingManager1.Controls.Count);
Another question: how can I hide the tab simbol that existes at the bottom of the DockPanel?
For example: When I add the DockPanel, at its bottom, it seems like it's a tab. Can I hide this and only the window will appear?
Thanks

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 15 Apr 2009, 07:52 AM
Hi Evellyn,

Please use Size or Width of DockPanel item for the resize operation. To hide the tabstrip you can use TabStripVisible property of DockPanel.

DockableWindowCollection dockPanels = this.dockingManager1.GetManagedDockables(); 
for (int i = 0; i < dockPanels.Count; i++) 
    ((DockWindow)dockPanels[i]).Width = 300; 
 
dockPanel1.TabStripVisible = false

Sincerely yours,
Julian Benkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Dock
Asked by
Evellyn
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or