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

Change size of dock toolwindow

1 Answer 405 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Tal Bazadka
Top achievements
Rank 1
Tal Bazadka asked on 22 Mar 2011, 06:03 PM
hi,
I have two ToolWindow, that docked to RadDock that her MainDocumentContainerVisble property is false,
and i try to changed size of ToolWindows.
and add the rad dock to winform, the toolwindows shown in same size.

this is the code:

RadDock raddock = new RadDock();
raddock.Dock = DockStyle.Fill;
RadDock.MainDocumentContainerVisble = false;

ToolWindow window1 = new ToolWindow("Window1")

DockTabStrip strip = (DockTabStrip)window1.TabStrip;
strip.SizeInfo.AbsoluteSize = new Size(50,this.Size.Height);

ToolWindow window2 = new ToolWindow("Window2")

DockTabStrip strip2 = (DockTabStrip)window2.TabStrip;
strip2.SizeInfo.AbsoluteSize = new Size(550,this.Size.Height);

this.Controls.Add(raddock);

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 25 Mar 2011, 05:19 PM
Hello Tal,

Thank you for your question.

Please review this help article explaining how to build an advanced RadDock layout at runtime. It contains examples regarding defining the size of ToolWindows.

I hope it helps.

Best regards,
Alexander
the Telerik team
Tags
Dock
Asked by
Tal Bazadka
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or