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

Prevent Toolwindow from resizing

1 Answer 192 Views
Dock
This is a migrated thread and some comments may be shown as answers.
msulis
Top achievements
Rank 1
msulis asked on 31 May 2010, 08:45 PM
I'm sure this must be simple, but I can't figure out how to do it.

When I resize a raddock with a toolwindow on the side, the toolwindow resizes proportionately along with the whole dock. I want to keep the toolwindow on the side the same size always, and allow the "slack" to be taken up by the other toolwindows.

I can't seem to find a MaximumSize property for the Toolwindow.

How do I do this?

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 03 Jun 2010, 08:58 PM
Hello msulis,

Thank you for the question.

The layout of RadDock is based on the RadSplitContainer control. So, you just need to set the SizeMode to Absolute:
this.toolWindow1.TabStrip.SizeInfo.SizeMode = SplitPanelSizeMode.Absolute;

Please note, however, that the document container should be hidden in this case:
this.radDock1.MainDocumentContainerVisible = false;

I hope this helps. If you have additional questions, feel free to contact me.

Kind regards,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Dock
Asked by
msulis
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or