Hello,
Welcome to our Microsoft Q&A platform!
The top bar is UINavigationBar and bottom bar is UITabBar. You said "only the bottom tool bar is black but the top bar is normal " , it caused by the Appearance
of UITabBar
, you could add the following code to FinishedLaunching
method in Appdelegate.cs
var appearance = new UITabBarAppearance();
appearance.BackgroundColor = UIColor.White;
UITabBar.Appearance.StandardAppearance = appearance;
UITabBar.Appearance.ScrollEdgeAppearance = appearance;
If you want to customize the tabBarItem, you coud try to update UITabBarItemAppearance
//UITabBarItemAppearance tabBarItemAppearance = new UITabBarItemAppearance();
//tabBarItemAppearance.Normal.TitleTextAttributes = new UIStringAttributes() { ForegroundColor = UIColor.DarkGray, Font = UIFont.SystemFontOfSize(12) };
//tabBarItemAppearance.Selected.TitleTextAttributes = new UIStringAttributes() { ForegroundColor = UIColor.Red };
//appearance.StackedLayoutAppearance = tabBarItemAppearance;
Best Regards,
Wenyan Zhang
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.