MvvmCross:MvxImageViewLoader如何设置DefaultImagePath属性

我怎样才能在MvxImageViewLoader上设置DefaultImagePath?

我如何获得UImage的LocalResourcePath?

var imageViewLoader = new MvxImageViewLoader(() => imageView); imageViewLoader.DefaultImagePath = UIImage.FromBundle("images/Default.png"); imageViewLoader.ErrorImagePath = UIImage.FromBundle("images/Error.png"); 

在使用MvxImageViewLoader加载资源图像中讨论了使用资源图像path,这有可能吗? 使用res:前缀

  imageViewLoader.DefaultImagePath = ("res:images/Default.png"); 

还有一个最近的问题,说ErrorImagePath在一些HTTP错误的情况下工作不正常 – 添加用户代理头到图像下载请求 – 但是没有复制/问题。

无法得到上面的工作,下面虽然工作马上:

 imageViewLoader.DefaultImagePath = NSBundle.MainBundle.PathForResource("Cover", "png"); imageViewLoader.ErrorImagePath = NSBundle.MainBundle.PathForResource("Cover", "png");