Skip to content

Fixed FontImageSource icon color does not change in the TabbedPage when dynamically updated. #27742

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

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

NirmalKumarYuvaraj
Copy link
Contributor

@NirmalKumarYuvaraj NirmalKumarYuvaraj commented Feb 12, 2025

Issue Details

The FontImageSource Icon color of the TabbedPage is not updated at run time.

Root Cause

The SourceChanged event is not implemented for the IconImageSource in the Page.

Description of Change

Implementing a source changed event listener for IconImageSource in the ImageSource call back. When the ImageSource changes are detected, manually triggering PropertyChanged for IconImageSource.This propagates the change through the UI update mechanism, ensuring the TabbedPage icon reflects the new state.

Validated the behaviour in the following platforms

  • Android
  • Windows
  • iOS
  • Mac

Issues Fixed

Fixes #27549

NOTE : This PR is dependent on the following PR's .
Android and iOS PR - #26757
Windows PR - #26888

TestCase - I will modify the testcase once the above PR's are merged.

Output

Before After
Before.mov
After.mov

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Feb 12, 2025
Copy link
Contributor

Hey there @NirmalKumarYuvaraj! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@karthikraja-arumugam karthikraja-arumugam added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Feb 12, 2025
Copy link
Contributor

@jsuarezruiz jsuarezruiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NirmalKumarYuvaraj
Copy link
Contributor Author

The related test will be https://github.com/dotnet/maui/blob/45a3f7e0e5ff292b9ffe02691bfbe472e8d63b0a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue26662.cs?

@jsuarezruiz , Yes, this is the test case I am referring to. Once this gets merged, I will update the button click logic to change the color instead of setting a new FontImageSource.

@NirmalKumarYuvaraj NirmalKumarYuvaraj marked this pull request as ready for review February 14, 2025 13:30
@NirmalKumarYuvaraj NirmalKumarYuvaraj requested a review from a team as a code owner February 14, 2025 13:30
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen merged commit f126268 into dotnet:main Feb 28, 2025
123 checks passed
tj-devel709 pushed a commit that referenced this pull request Mar 3, 2025
…en dynamically updated. (#27742)

* Fixed The FontImageSource icon color does not change in the TabbedPage when dynamically updated.

* Updated code changes
bhavanesh2001 pushed a commit to bhavanesh2001/maui that referenced this pull request Mar 7, 2025
…en dynamically updated. (dotnet#27742)

* Fixed The FontImageSource icon color does not change in the TabbedPage when dynamically updated.

* Updated code changes
@github-actions github-actions bot locked and limited conversation to collaborators Mar 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-tabbedpage TabbedPage community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The FontImageSource icon color does not change in the TabbedPage when dynamically updated.
4 participants