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. Image for the cookie policy date

SfTabView questions - Closing tabs & fit to width


Can you answer a couple of questions:

1) Can you do close functionality like this https://help.syncfusion.com/uwp/sftabcontrol/close-and-scroll-button-functionalities#closing-a-tab-item

2) Can you fit the tabs to width of the container so 2 items the tabs are, 50% 3 items tabs are 33% etc etc


1 Reply

MS Mugundhan Saravanan Syncfusion Team January 11, 2019 10:26 AM UTC

Hi Steve, 
Greetings from Syncfusion.

Query 1:  Close button support for tab item in Xamarin.Forms 
In our current implementation we don't have support for this. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts. We have added this feature request to our database. You can now track the current status of this feature request here  

At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented.
Query 2: Fit the tab items to the width of the container 

We suggest you set "VisibleHeaderCount" property which displays the number of items to be shown in the view and it will helps to share the tab items space equally in the view. Please use the below code snippets for setting VisibleHeaderCount property. 
  <tabView:SfTabView x:Name="tabView" VisibleHeaderCount="3/> 
We have created the sample for your reference. Please have the sample from the below link with the output screenshot. 

Please try our sample and let us know if you have any clarifications on this. 
Mugundhan S. 

Live Chat Icon For mobile
Up arrow icon