0

I'm using FFImageLoading.Cross.MvxCachedImageView and trying to make conditional binding in iOS, but it fails with the following Mvx trace:

Problem seen during binding execution for binding Image for MvxValueConverterValueCombiner combiner-operation - problem ArgumentException: Object of type 'System.String' cannot be converted to type 'UIKit.UIImage'.

Does anyone know what could be wrong?

set.Bind(imgInfo)
        .For(x => x.DataLocationUri)
        .OneWay()
        .SourceDescribed(@"If(IsFake, 'res:ic_lock_open_white', 'res:ic_info_outline_white')");
iamdanchiv
  • 4,052
  • 4
  • 37
  • 42
Hrvoje Matic
  • 1,207
  • 15
  • 12
  • Does FFImageLoading DataLocationUri support `res:`? – Cheesebaron Jun 20 '17 at 20:22
  • I was using res: in Android and it was working as expected. This is the code: local:MvxBind="DataLocationUri If(IsFavorite, 'res:ic_star_black', 'res:ic_star_border_black')" Here is the proof (take look at line 416): https://github.com/luberda-molinet/FFImageLoading/blob/master/source/FFImageLoading.Cross/MvxCachedImageView.cs – Hrvoje Matic Jun 22 '17 at 12:53

0 Answers0