没有注册 IMvxImageHelper
No IMvxImageHelper registered
我使用 mvvmcross,无法绑定到图像 URL。错误:没有注册 IMvxImageHelper - 在使用 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" />
我的模型:
public Guid Id { get; set; }
public string Name { get; set; }
public string Image { get; set; }
public decimal Price { get; set; }
安装 DownloadCache 插件和 MVVMCross File 插件
我在 android 中也遇到过这个问题。我所做的修复是添加 bootstrap 类。
public class DownloadCachePluginBootstrap
: MvxPluginBootstrapAction<MvvmCross.Plugins.DownloadCache.PluginLoader>
{
}
public class FilePluginBootstrap
: MvxPluginBootstrapAction<MvvmCross.Plugins.File.PluginLoader>
{
}
我使用 mvvmcross,无法绑定到图像 URL。错误:没有注册 IMvxImageHelper - 在使用 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" />
我的模型:
public Guid Id { get; set; }
public string Name { get; set; }
public string Image { get; set; }
public decimal Price { get; set; }
安装 DownloadCache 插件和 MVVMCross File 插件
我在 android 中也遇到过这个问题。我所做的修复是添加 bootstrap 类。
public class DownloadCachePluginBootstrap
: MvxPluginBootstrapAction<MvvmCross.Plugins.DownloadCache.PluginLoader>
{
}
public class FilePluginBootstrap
: MvxPluginBootstrapAction<MvvmCross.Plugins.File.PluginLoader>
{
}