No IMvxImageHelper registered

二次信任 提交于 2020-01-13 07:12:05

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!