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

Make TabItem Headers Stretch To Fill Available Space

1 Answer 219 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Martyn
Top achievements
Rank 1
Martyn asked on 19 Jan 2012, 05:48 PM
Hi,

I am trying to style a TabControl so that however many Tab Items are added to the control, they fill the amount of available space at the top of the Tab Control, so that there is no white space alongside the tab headers.

So, if there are 2 tabs, each tab should take up 50% of the available space, and if there are 3 tabs, each should take up 33.3% of the available space and so on.

Is this possible and if so, how?

Thanks very much,

Martyn.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 24 Jan 2012, 10:29 AM
Hello Martyn,

In order to implement your scenario you need to set the RadTabControl.Align property to Justify. Give it a try and let me know if it helps.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TabControl
Asked by
Martyn
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or