Skip to content

SyncfusionExamples/How-to-wrap-tab-items-text-in-.NET-MAUI-Tab-View

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

How to wrap tab items text in .NET MAUI Tab View

This article explains how to wrap tab items text in .NET MAUI Tab View. You can wrap or truncate the tab item text by using the LineBreakMode property in the SfTabItem

MainPage.Xaml

<tabView:SfTabView TabBarSize="60">
   <tabView:SfTabItem Header="Application Usage Guidelines and Policies" LineBreakMode="WordWrap">
       <Label Text="Guidelines content" VerticalOptions="Center" HorizontalOptions="Center" />
   </tabView:SfTabItem>
   <tabView:SfTabItem Header="User Access Control and Permission Settings" LineBreakMode="WordWrap">
       <Label Text="Access control content" VerticalOptions="Center" HorizontalOptions="Center" />
   </tabView:SfTabItem>
   <tabView:SfTabItem Header="Software License Information and Notices" LineBreakMode="WordWrap">
       <Label Text="License content" VerticalOptions="Center" HorizontalOptions="Center" />
   </tabView:SfTabItem>
</tabView:SfTabView>

Output:

linebreakmode-kb.png

About

This branch demonstrates how to enable text wrapping for tab items in a .NET MAUI TabView.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages