ChangePropertyAction doesn't work with Image and Source property #150
Replies: 4 comments
-
As a temporary solution, i use control inherited from Image:
then i write in XAML:
|
Beta Was this translation helpful? Give feedback.
-
It's just because Image doesn't work with string, but works with IBitmap |
Beta Was this translation helpful? Give feedback.
-
Yes, this is true, but Avalonia uses a converter (BitmapTypeConverter), which allows you to write |
Beta Was this translation helpful? Give feedback.
-
In file https://github.com/wieslawsoltes/AvaloniaBehaviors/blob/5e800a7f4c6ecdf49952873e04a57f813ce27d6d/src/Avalonia.Xaml.Interactions/Core/TypeConverterHelper.cs#L69-L70 for the type |
Beta Was this translation helpful? Give feedback.
-
I doesn't update the image source.
But it works when I use text (emoji here).
Beta Was this translation helpful? Give feedback.
All reactions