Articles in this section
Category / Section

How to create a Tab View using custom font icon in .NET MAUI (SfTabView)?

2 mins read

In .NET MAUI, creating a Tab View with custom font icons can enhance the visual appeal and user experience of your application. This article will guide you through the process of implementing a .NET MAUI TabView using custom Font Icons in your application.

Step 1: Define the Tab View in XAML:

In your XAML file, define the Tab View and include SfTabItem elements with the Header property set to the Unicode character of the icon, and the FontFamily set to the name of your custom font.

XAML

 <tabView:SfTabView x:Name="tabView"  TabWidthMode="Default" TabBarHeight="100" >
     <tabView:SfTabView.Items  >
           <tabView:SfTabItem Header="" FontFamily="SegmentIcon"  FontSize="25">
             <tabView:SfTabItem.Content>
                 <Label Text="Calls items"></Label>
             </tabView:SfTabItem.Content>
         </tabView:SfTabItem>

           <tabView:SfTabItem Header="" FontFamily="SegmentIcon"  FontSize="25" >
             <tabView:SfTabItem.Content>
                 <Label Text="Favourite items"></Label>
             </tabView:SfTabItem.Content>
         </tabView:SfTabItem>

           <tabView:SfTabItem Header="" FontFamily="SegmentIcon" FontSize="25">
             <tabView:SfTabItem.Content>
                 <Label Text="Message items"></Label>
             </tabView:SfTabItem.Content>
         </tabView:SfTabItem>
     </tabView:SfTabView.Items>
 </tabView:SfTabView>

Output

Screenshot 2023-12-06 164101.png

Conclusion

I hope you enjoyed learning how to create a Tab View using custom font icons in .NET MAUI.

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. 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