Skip to content
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

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
3 participants