-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TabbedPage doesn't change icon colour #23174
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
I can repro this issue at Android platform on the latest 17.11.0 Preview 2.1 (9.0.0-preview.4.10690 &9.0.0-preview.5.24307.10). |
Same problem here but using PNG's, will probably have to fix at platform level, more time gone... |
Any update? |
Hi, here's a fix that I've proposed a couple of months ago (iOS) :) #22437 On the latest net8 Android, it also works, but I didn't test it on net9 Screen.Recording.2024-09-01.at.02.11.28.mov |
Description
The TabbedPage doesn't change the icon colour as the tabs are selected/unselected. The title text changes ok.
Using a PNG, instead of an Icon works too, and the colour changes in sync with the title text.
This was working on Xamarin.Forms and works on Android .NET Maui with some tweaks.
Steps to Reproduce
Create a new maui app.
Add fontawesome
Add a tabbed page with content and set the title and icon for each.
See reproduction project for details.
Link to public reproduction project repository
https://github.com/richaplinvs/reproduction-projects/tree/main/maui/TabbedSelectionIssue
Version with bug
9.0.0-preview.4.10690
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
iOS 17.4, Android Api 33
Did you find any workaround?
On Android changing the position of the toolbar:
or tab colours:
On iOS use the OnAppearing/OnDisappearing in each of the tabs content page to set the colour. This requires creating a new instance of FontImageSource each time because the Color property cannot be set on it's own.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: