How can I change the FontFamily of tab titles in a TabbedPage in .NET MAUI?

dot Net Dev 20 Reputation points
2024-08-13T13:23:11.9+00:00

Hi, I was designing a TabbedPage to navigate between different sections of my app. The default font for the tab titles was fine, but I wanted to give it a more personalized touch by using a custom font. How can I change the FontFamily of tab titles in a TabbedPage in .NET MAUI?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,799 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,001 Reputation points Microsoft Vendor
    2024-08-16T09:01:14.9033333+00:00

    Hello,

    After testing, on Android platform you can refer to the workaround in this thread.

    For iOS, after testing, Handler does not get the UITabBarController on the iOS platform, and when using Renderer to implement this function, there will be a HandlerNotFound error that causes the program to crash. As a result, this feature is currently not available on iOS.

    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 comments No comments

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.