Change size of dock toolwindow

2 posts, 0 answers
  1. Tal Bazadka
    Tal Bazadka avatar
    2 posts
    Member since:
    May 2010

    Posted 22 Mar 2011 Link to this post

    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);

  2. Alexander
    Alexander avatar
    306 posts

    Posted 25 Mar 2011 Link to this post

    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,
    the Telerik team
  3. DevCraft R3 2016 release webinar banner
Back to Top