How to customize the height and width of a tab Item in .NET MAUI Tab View?
This section illustrates how to customize the tab Item height and width in .NET MAUI Tab View. You can set the TabBarHeight and TabWidthMode properties within each TabItem to customize the dimensions. Adjust these property values according to your design preferences and application requirements.
<tabView:SfTabView x:Name="tabView" TabBarHeight="100" TabWidthMode="Default">
<tabView:SfTabView.Items>
<tabView:SfTabItem Header="Call">
<tabView:SfTabItem.Content>
<Grid BackgroundColor="Red"></Grid>
</tabView:SfTabItem.Content>
</tabView:SfTabItem>
<tabView:SfTabItem Header="Favorites">
<tabView:SfTabItem.Content>
<Grid BackgroundColor="Green"></Grid>
</tabView:SfTabItem.Content>
</tabView:SfTabItem>
<tabView:SfTabItem Header="Contacts">
<tabView:SfTabItem.Content>
<Grid BackgroundColor="Blue"></Grid>
</tabView:SfTabItem.Content>
</tabView:SfTabItem>
</tabView:SfTabView.Items>
</tabView:SfTabView>
Output
Conclusion
I hope you enjoyed learning how to customize the tab item height and width in .NET MAUI Tab View.
You can refer to our .NET MAUI Tab View feature tour page to learn about its other groundbreaking feature representations. Explore our .NET MAUI Tab View documentation to understand how to present and manipulate data.
You can check out our .NET MAUI components on the License and Downloads page for current customers. If you are new to Syncfusion®, try our 30-day free trial to explore our .NET MAUI Tab View and other .NET MAUI components.
Please let us know in the comments if you have any queries or require clarification. Contact us through our support forums, Direct-Trac or feedback portal. We are always happy to assist you!