Hello,
You could use Renderer
to implement this function.
Referring to this official sample customize-tabs, we could find the details about how to deal with it in ExtendedTabbedPageRenderer.cs
.
Another way is setting the UITabBarAppearance
property manually, you can refer the following key code.
private static UITabBarAppearance tabBarAppearance()
{
var appearance = new UITabBarAppearance();
appearance.ConfigureWithOpaqueBackground();
appearance.BackgroundColor = UIColor.White;
appearance.StackedLayoutAppearance.Normal.TitleTextAttributes = new UIStringAttributes() { Font = UIFont.FromName("MY_FONT_NAME", 10), };
appearance.StackedLayoutAppearance.Selected.TitleTextAttributes = new UIStringAttributes() { Font = UIFont.FromName("MY_FONT_NAME", 10), };
return appearance;
}
...
tabBar.ScrollEdgeAppearance = appearance;
tabBar.StandardAppearance = appearance;
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.