Dock with tool window in center?

5 posts, 1 answers
  1. regina
    regina avatar
    40 posts
    Member since:
    Sep 2012

    Posted 02 Feb 2011 Link to this post

    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.
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 03 Feb 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 03 Feb 2011 Link to this post

    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.
  5. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 03 Feb 2011 Link to this post

    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
  6. regina
    regina avatar
    40 posts
    Member since:
    Sep 2012

    Posted 03 Feb 2011 Link to this post

    Richard/Nikolay,
    Thank you very much for your replies.
    regina.
Back to Top
UI for WinForms is Visual Studio 2017 Ready