Articles in this section
Category / Section

How to customize the height and width of a tab Item in .NET MAUI TabView?

2 mins read

This section illustrates how to customize the tab Item height and width in .NET MAUI TabView. 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" />                  
            </tabView:SfTabItem.Content>
        </tabView:SfTabItem>
        <tabView:SfTabItem Header="Favorites">
            <tabView:SfTabItem.Content>
                <Grid BackgroundColor="Green"/>
            </tabView:SfTabItem.Content>
        </tabView:SfTabItem>
        <tabView:SfTabItem Header="Contacts">
            <tabView:SfTabItem.Content>
                <Grid BackgroundColor="Blue"/>
            </tabView:SfTabItem.Content>
        </tabView:SfTabItem>
    </tabView:SfTabView.Items>
</tabView:SfTabView>

Output

Screenshot 2023-12-01 103109.png

Conclusion

Hope you enjoyed learning about how to customize the tabItem height and width in .NET MAUI TabView.

You can refer to our .NET MAUI Tab View’s feature tour page to learn about its other groundbreaking feature representations. You can explore our .NET MAUI Tab View documentation to understand how to present and manipulate data.

For current customers, you can check out our .NET MAUI components on the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to explore our .NET MAUI TabView and other .NET MAUI components.

If you have any queries or require clarifications, please let us know in the comments below. You can also contact us through our support forums, Direct-Trac or feedback portal, or the feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied