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

AutoHide tab height

1 Answer 76 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Mercell
Top achievements
Rank 2
Mercell asked on 29 Dec 2010, 02:55 PM
Hi,

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

if I use

radDock.AutoHideWindow(toolWindow);

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.

Thanks,
Brian

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 30 Dec 2010, 03:18 PM
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()
{
    InitializeComponent();
    radDock1.AutoHideWindow(toolWindow);
    radDock1.GetAutoHideTabStrip(AutoHidePosition.Left).TabLayout.MinSize = new Size(30, 0);
    radDock1.GetAutoHideTab(toolWindow).MinSize = new Size(0,30);
    radDock1.Invalidate();
}

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.
Tags
Dock
Asked by
Mercell
Top achievements
Rank 2
Answers by
Ivan Todorov
Telerik team
Share this question
or