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

Issue: Color Change Not Reflected in SVG #237

Open
EltonBraggs opened this issue Jul 19, 2024 · 2 comments
Open

Issue: Color Change Not Reflected in SVG #237

EltonBraggs opened this issue Jul 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@EltonBraggs
Copy link

Issue:
The color of the inner-rect in the SVG file remains unchanged despite the Color property being updated.

Expected Behavior:
The color of the inner rectangle should change according to the color specified in the Color property when the button is clicked.

Actual Behavior:
The color of the inner rectangle does not reflect the changes made in the Color property, even though the color binding is correctly initialized in the constructor of the ViewModel.

You can find the application repository here.

@EltonBraggs
Copy link
Author

Solution:
The problem was likely caused by the Image Source not being fully reactive. Directly using the SVG control instead of the Image Source solves the Binding issue.
image

@wieslawsoltes wieslawsoltes added the bug Something isn't working label Nov 24, 2024
@wieslawsoltes
Copy link
Owner

The issue is Avalonia does not support invalidating IImage AvaloniaUI/Avalonia#17601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants