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

Dock with tool window in center?

4 Answers 36 Views
Dock
This is a migrated thread and some comments may be shown as answers.
regina
Top achievements
Rank 1
regina asked on 02 Feb 2011, 09:38 PM
Hi,
I am developing a winforms app using dock with a single tool window,  currently I have tool window located in the top.  I really want it to display as it would if it were in the middle but for styling reasons I prefer a tool window to a document window. 

So the result right now is an odd space below the tool window and the splitter that divides the tool window from the odd blue space.  is there any way to put a tool window in the center, or to make the splitter disappear and lock the tool window so if the user alters the size of the form the tool window will grow in size as well as opposed to the blue space growing as well.  I have attached a picture so you can see the blue space separator/splitter I am talking about.
thank you in advance for your help.

4 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 03 Feb 2011, 10:45 AM
Hello Regina,

As far as I'm aware, this isn't possible as the space at the bottom is actually the RadDock Root Element that has a reserved space. You could however add a tabbed document but then hide the tab itself using the following

this.documentWindow1.TabStrip.TabStripElement.Visibility = ElementVisibility.Collapsed;

Hope that helps, but let me know if you have any questions
Richard
0
Nikolay
Telerik team
answered on 03 Feb 2011, 12:29 PM
Hello regina,

Thank you for contacting us.

Please refer to the following documentation article which answers your question: Creating a RadDock at Runtime.

I hope that you will find this information helpful.

Greetings,
Nikolay
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 03 Feb 2011, 12:35 PM
Hi Regina / Nikolay,

My apologies for giving incorrect information.

@Regina - The code as per the documentation works as follows
ToolWindow toolWindow1 = new ToolWindow();
toolWindow1.Text = "A ToolWindow";
radDock1.DockWindow(toolWindow1, DockPosition.Left);
radDock1.MainDocumentContainerVisible = false;

regards,
Richard
0
regina
Top achievements
Rank 1
answered on 03 Feb 2011, 02:54 PM
Richard/Nikolay,
Thank you very much for your replies.
regina.
Tags
Dock
Asked by
regina
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Nikolay
Telerik team
regina
Top achievements
Rank 1
Share this question
or