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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to disable a SfTabItem in a SfTabView?

Thread ID:





148466 Oct 21,2019 12:36 PM UTC Oct 22,2019 10:39 AM UTC Xamarin.Forms 1
Tags: SfTabView
Marco Negroni
Asked On October 21, 2019 12:36 PM UTC

Good afternoon,

how to disable a SfTabItem in a SfTabView?

Thanks in advance

Hemalatha Marikumar [Syncfusion]
Replied On October 22, 2019 10:39 AM UTC

Hi Marco, 
Greetings from Syncfusion. 
We have analyzed your query. You can disable the navigation of “TabItem in a SfTabView” by using TabItemTapped event of TabView and disable the EnableSwiping as like below code snippet. 
<tabView:SfTabView TabItemTapped="SfTabView_TabItemTapped"   EnableSwiping="False" BackgroundColor="Aqua"> 
            <tabView:SfTabItem " Title="Call"> 
                <tabView:SfTabItem.Content > 
                    <Grid BackgroundColor="Red" x:Name="AllContactsGrid" /> 
private void SfTabView_TabItemTapped(object sender, Syncfusion.XForms.TabView.TabItemTappedEventArgs e) 
            e.Cancel = true; 
You can also hide the “TabItem in a SfTabView” by setting IsVisble property of TabItem as like below code snippet. 
<tabView:SfTabItem IsVisible="False" Title="Contacts"> 
                    <Grid BackgroundColor="Blue" x:Name="ContactsGrid" /> 
We have created sample based on your requirement, please download the sample from below location. 
Please let us know if you have any other queries. 
Hemalatha M. 


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon