Setup font size header title

Hi,

I try to setup the headrer font size but it overflows on the other tabs.



What do I miss in my code?

<tabview:SfTabView IsScrollButtonEnabled="True" DisplayMode="Text">
            <tabview:SfTabView.Items>
                <tabview:SfTabItem SelectionColor="{StaticResource BlueColor}" TitleFontSize="20" Title="{extensions:Translate Category Masters}">
                    <tabview:SfTabItem.Content>


Thanks,

1 Reply 1 reply marked as answer

SP Sakthivel Palaniyappan Syncfusion Team June 8, 2020 11:46 AM UTC

Hi Alexis,

Greetings from Syncfusion.

We suggest you to resolve the reported problem by using TabWidth API or  SfTabView Custom Header.

Using TabWidth:


Please find the below code snippet for this,

Code Snippet: 

<tabView:SfTabView TabHeaderPosition="Top" TabWidth="400" DisplayMode="Text" IsScrollButtonEnabled="True">

   

Using Custom Header:

Please find the below code snippet and sample for this

 
 var header1 = new StackLayout 
            { 
                Children = 
                { 
                    new Label 
                    { 
                        Text = "Game Plan Content", 
                         FontSize=20, 
                        LineBreakMode=LineBreakMode.WordWrap 
                    }, 
                } 
            }; 

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/TabView_WrapHeader1683820519_2-624629256

Please refer the  below help document link for this

https://help.syncfusion.com/xamarin/tabbed-view/custom-header

Please check with the above and let us know if you have any concern.

Regards,
Sakthivel P.
 


Marked as answer
Loader.
Up arrow icon