AutoHide tab height

2 posts, 0 answers
  1. Mercell
    Mercell avatar
    33 posts
    Member since:
    Nov 2006

    Posted 29 Dec 2010 Link to this post


    How do I set the height of the tab that is shown when a toolwindow is autohidden?

    if I use


    in the forms ctor the height of the tab is smaller than when doing it in the forms Load eventhandler or when the users manually autohides a toolwindow.


  2. Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 30 Dec 2010 Link to this post

    Hello Mercell,

    Thank you for contacting us.

    Hiding a window in the constructor of the form results in a smaller AutohideTabStripElement because its items are not yet initialized. However, you can change the MinSize of these elements so they wont be smaller when created in the constructor. Please refer to the code snippet below:

    public Form1()
        radDock1.GetAutoHideTabStrip(AutoHidePosition.Left).TabLayout.MinSize = new Size(30, 0);
        radDock1.GetAutoHideTab(toolWindow).MinSize = new Size(0,30);

    Note that the AutoHidePosition depends on where the toolWindow is docked.

    I hope you find this useful. Should you have any further questions, do not hesitate to ask.

    All the best,
    Ivan Todorov
    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.
Back to Top