remove IconTint for multicolored icons on tabbedPage

Chisa Kogano 45 Reputation points
2023-06-07T12:38:44.77+00:00

Hi all, I just want to add an multicolored icon on my tabbedPage but my tabbedPage display the icon with one color like IconTint thanks for ur help

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

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,491 Reputation points Microsoft Vendor
    2023-06-08T05:46:58.58+00:00

    Hello,

    By the default, icon is colorful in the Tabbedpage.

    You have set the android:TabbedPage.ToolbarPlacement="Bottom", am I right? Then you will find the icon have one color, not colorful for android platform.

    TabbedPage
        
         xmlns:android="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;assembly=Microsoft.Maui.Controls"
                android:TabbedPage.ToolbarPlacement="Bottom"
                >
    

    Because we cannot get the BottomNavigationView, we cannot hide it by ((BottomNavigationView)childRelativeLayoutView).ItemIconTintList = null;. And I find have a similar feature request in MAUI github page:Port SetTabBarIsVisible To TabbedPage From Shell #13819

    Best Regards,

    Leon Lu


    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

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more