I can\'t seem to get images to bind properly in an MvxListView
Here is the template:
I have used this to make it work for me:
public class StringToIntValueConverter : MvxValueConverter
{
protected override int Convert(string value, Type targetType, object parameter, CultureInfo culture)
{
int image = 0;
if(value == "song")
image = Resource.Drawable.icon_category_song;
return image;
}
}
To use this in the Android layout:
In this example "Type" is a string containing the word "song".