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

How to change the TabItem's Title selection attributes


I want to change the font attributes of the selected tabitem's Title to be Bold.
Is it possible?

I know there is a "SelectionColor" property. What about a "SelectionAttributes" property?

Thank you,

1 Reply

DR Dhanasekar R Syncfusion Team January 29, 2019 11:34 AM UTC

Hi Tito, 
Greetings from Syncfusion. 
Currently we do not have any property to change the FontAttributes of Text during SelectionChange. But, we can achieve your requirement by changing the FontAttributes of the Title and FontIcon during SelectionChanged event. 
void Handle_SelectionChanged(object sender, Syncfusion.XForms.TabView.SelectionChangedEventArgs e)
    foreach (SfTabItem tabitem in (sender as SfTabView).Items)
       if (tabitem.Title == e.Name)
             tabitem.TitleFontAttributes = FontAttributes.Bold;
             tabitem.FontIconFontAttributes = FontAttributes.Bold;
              tabitem.TitleFontAttributes = FontAttributes.None;
              tabitem.FontIconFontAttributes = FontAttributes.None;

We have prepared a sample for the same, please download it from the link given below. 
Sample linkTabViewSample 
Please let us know if you have any further clarification on this. 

Live Chat Icon For mobile
Up arrow icon