How do you customise the bottom navigation bar (tabbar) on a TabbedPage in Maui? (change font)

Anthony Njuguna 21 Reputation points
2022-11-30T16:35:15.643+00:00

How do you change the font family on the tab bar? In Xamarin forms I could extend the TabbedPageRenderer but not sure how to do it in Maui.
Any help is greatly appreciated.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,695 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 45,026 Reputation points Microsoft Vendor
    2022-12-01T02:59:10.18+00:00

    Hello,

    I could extend the TabbedPageRenderer but not sure how to do it in Maui.

    You can use the following two ways to implement the feature.

    Method 1: It is more recommened to use Handler rather than Renderer on MAUI.

    You could use ITabbedViewHandler to customize your TabbedPage on each platform, please refer to the following documentations:

    Method 2: You could continue using TabbedPageRenderer on MAUI, please refer to Using Custom Renderers in .NET MAUI.

    Update: For your case, after in-depth investigation, for your scenario, if you use Handler, you need to create a view of the corresponding platform to adapt. Please refer to Create a custom control using handlers to get more details.

    As you could see, the steps will be cumbersome. Therefore, using Renderer to change font will be better choice for your scenario.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.