DockPanels with the same width

2 posts, 0 answers
  1. Evellyn
    Evellyn avatar
    7 posts
    Member since:
    Oct 2008

    Posted 13 Apr 2009 Link to this post

    Hello
    In my app, I add the DockPanels dinamically to the DockingManager...
    How can I do to these panels have the same width?
    I tried this:
    dockingManager1.Controls[x].Width = (dockingManager1.Width / dockingManager1.Controls.Count);
    Another question: how can I hide the tab simbol that existes at the bottom of the DockPanel?
    For example: When I add the DockPanel, at its bottom, it seems like it's a tab. Can I hide this and only the window will appear?
    Thanks
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 15 Apr 2009 Link to this post

    Hi Evellyn,

    Please use Size or Width of DockPanel item for the resize operation. To hide the tabstrip you can use TabStripVisible property of DockPanel.

    DockableWindowCollection dockPanels = this.dockingManager1.GetManagedDockables(); 
    for (int i = 0; i < dockPanels.Count; i++) 
        ((DockWindow)dockPanels[i]).Width = 300; 
     
    dockPanel1.TabStripVisible = false

    Sincerely yours,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top