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

SvgImage not re-rendering on binding update #224

Closed
daningalla opened this issue Apr 28, 2024 · 2 comments
Closed

SvgImage not re-rendering on binding update #224

daningalla opened this issue Apr 28, 2024 · 2 comments

Comments

@daningalla
Copy link

I imagine the most likely culprit is that I'm doing this incorrectly, but in short, an SvgImage element is not re-rendering after its underlying binding is updated.

There is an SVG image within an AutoCompleteBox.InnerLeftContent element. Its Source property is a model binding to a key which resolves to an SvgSource using a converter. When the AutoCompleteBox value changes, the property is wired to change with the key. When I run the program and change the AutoCompleteBox value, the SVG is not re-rendered.

I verified the Source is being set using the dev tools, it's just the SVG itself is not being repainted. Strangely, this only occurs inside the InnerLeftContent and not other controls. The demo project linked shows this.

Jump right to the repro project.

@daningalla
Copy link
Author

daningalla commented Apr 29, 2024

svg-capture

Shows the Source is different than what is rendered to the device.

@wieslawsoltes
Copy link
Owner

Its Avalonia issue as it dropped image invalidation api. No way to fix without Avalonia fixing it first. Known issue for a long time.

@wieslawsoltes wieslawsoltes closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants