Skip to content

AutoCompleteBox.InnerLeftContent is not updating on view model changes #15544

Answered by BAndysc
daningalla asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like you are right, SvgImage has even a comment here to invalidate IImage https://github.com/wieslawsoltes/Svg.Skia/blob/f987aafd8f78d5558e089cb9aea5552b6abd47ff/src/Avalonia.Svg/SvgImage.cs#L103
But it looks like IImage is not designed to be mutable:

public interface IImage

What you should do then, is to bind the Category directly to Image.SourceProperty and modify the converter to return an instance of SvgImage with the new value set as the source in SvgImage.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@daningalla
Comment options

@rabbitism
Comment options

@daningalla
Comment options

Comment options

You must be logged in to vote
2 replies
@BAndysc
Comment options

Answer selected by daningalla
@timunie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants