问题
I use mvvmcross and can not bind to image URL. Error: No IMvxImageHelper registered - you must provide an image helper before you can use a MvxImageView
<Mvx.MvxImageView
p1:id="@+id/imgArticle"
p1:layout_width="49dp"
p1:layout_height="49dp"
p1:layout_marginLeft="5dp"
p1:layout_marginTop="5dp"
local:MvxBind="ImageUrl Image, Converter = Image"
p1:layout_marginBottom="5dp"
p1:background="#ffff0000" />
My Model:
public Guid Id { get; set; }
public string Name { get; set; }
public string Image { get; set; }
public decimal Price { get; set; }
回答1:
Install the DownloadCache plugin and MVVMCross File plugin
回答2:
I also had this issue in android. What I did to fix it was adding the bootstrap classes.
public class DownloadCachePluginBootstrap
: MvxPluginBootstrapAction<MvvmCross.Plugins.DownloadCache.PluginLoader>
{
}
public class FilePluginBootstrap
: MvxPluginBootstrapAction<MvvmCross.Plugins.File.PluginLoader>
{
}
来源:https://stackoverflow.com/questions/30398804/no-imvximagehelper-registered