We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Stretch header items in SfTabControl

Thread ID:





119482 Jun 29,2015 11:12 PM UTC Jul 3,2015 10:55 AM UTC WinRT 3
Tags: SfTabControl
Asked On June 29, 2015 11:12 PM UTC


I am using the tabcontrol to display an alpha tab from A to Z. How do I make it so that all the tabs are visible in the view (horizontal stretching)? Ideally I would like to set a minimum width of the control before the scrolling of the tabs are enabled.
Is this possible?


Vijayalakshmi Roopkumar [Syncfusion]
Replied On June 30, 2015 01:23 PM UTC

Hi Ryan,

Thank you for contacting the Syncfusion Support,

We have prepared a sample according to your requirement. In our sample, we have set the MaxWidth for SfTabItem, so that you can allow to set the width for the control. Please download our sample using the below link:


Please let us know if you have any other concerns,

Vijayalakshmi V.R.

Replied On July 1, 2015 11:08 PM UTC

Hi Vijayalakshmi,

Thanks for the sample but it doesn't meet my requirements. Take the following code:

     <Navigation:SfTabItem Header="Tab 1"/>
     <Navigation:SfTabItem Header="Tab 2"/>
     <Navigation:SfTabItem Header="Tab 3"/>
     <Navigation:SfTabItem Header="Tab 4"/>

How can I make the tabcontrol fill the entire length of the view so that all 4 tabs are evenly stretched across the entire page? Something akin to setting the tab Width="*".


Vijayalakshmi Roopkumar [Syncfusion]
Replied On July 3, 2015 10:55 AM UTC

Hi Ryan,
In our current implementation of the SfTabControl, we have placed the SfTabItem according to its header length , so depending upon its header the SfTabItem will place, so it is not feasible to stretch the width of the SfTabItem header equally in the SfTabControl.

Please let us know if you have any other concerns,

Vijayalakshmi V.R.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon