Open jmichas opened 1 month ago
Well, I pulled down the code for the Advanced Entry and decided to fiddle with it myself. When I ran it locally with an emulator in debug mode, the icons didn't display so not sure how or why they worked with the nuget package.
From what I can see it should never have worked in the first place.
The imgIcon
field that is setup as a placeholder is never wired up to the bindable property for IconImage
.
It needs to be treated like the Text
property.
So I added into the ctor:
imgIcon.SetBinding(Image.SourceProperty, new Binding(nameof(IconImage), source: this));
and changed the IconImage
property to use the backing bindable IconImageProperty
changing the type of the bindable from string
to ImageSource
public ImageSource IconImage
{
get => (ImageSource)GetValue(IconImageProperty);
set
{
imgIcon.IsVisible = value != null;
SetValue(IconImageProperty, value);
}
}
Describe the bug When setting the icon of the entry using a FontImageSource everything works fine in debug builds but in release the icon's don't display. I thought this might be a linker issue but it appears not or there is something else that the default release build is doing.
I get these errors in the Android log:
To Reproduce Steps to reproduce the behavior:
Expected behavior Icon should be displayed