[iOS] Set color for Shell Tab item programmatically on page NavigatedTo

Tumi Tladi 26 Reputation points
2023-01-09T08:55:21.287+00:00

Can I manipulate a specific Tab by changing the color when I navigate to it?

Or override on ContentPage the current defined styles for Shell in styles when navigating?

Or even set a fixed color for Icon & Text specifically for iOS in AppDelegate class?

Developer technologies .NET .NET MAUI
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2023-01-11T06:59:44.51+00:00

    Hello,

    You can set TabBarForegroundColor to define the selected color (Black), and set TabBarTitleColor to define the title color (Black), set TabBarUnselectedColor to define the unselected color (Blue). Please refer to .NET MAUI Shell tabs - .NET MAUI | Microsoft Learn

    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.


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.