Articles in this section
Category / Section

How to add an image in the header content of the .NET MAUI Tab View (SfTabView)?

3 mins read

To add images into the header content of the .NET MAUI Tab View, follow the steps below:

Step 1: Start by configuring the Tab View layout with the necessary parameters.

Step 2: Utilize the ImageSource property to set images in the headers of the TabItems.

XAML

<tabView:SfTabView x:Name="tabView" HeightRequest="300" WidthRequest="100">
    <tabView:SfTabView.Items>
        <tabView:SfTabItem x:Name="tabItem1" 
                           Header="Calls"
                           ImageTextSpacing="3" 
                           ImageSource="calls.png">
        </tabView:SfTabItem>
        <tabView:SfTabItem x:Name="tabItem2" 
                           Header="Favorites" 
                           ImageTextSpacing="4"  
                           ImageSource="favorites.png">
        </tabView:SfTabItem>
        <tabView:SfTabItem x:Name="tabItem3" 
                           Header="Contacts" 
                           ImageTextSpacing="4" 
                           ImageSource="contacts.png">
        </tabView:SfTabItem>
    </tabView:SfTabView.Items>
</tabView:SfTabView>
        

Output

11.jpg

Conclusion
I hope you enjoyed learning how to add images to the header content of the .NET MAUI Tab View (SfTabView).

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 from the License and Downloads page for current customers. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Tab View and other .NET MAUI components.

Please let us know in the comments section if you have any queries or require clarification. You can also contact us through our support forums, Direct-Trac, or 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