本文介绍了MvvmCross:MvxImageViewLoader如何设置DefaultImagePath属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在MvxImageViewLoader上设置DefaultImagePath?
How can I set the DefaultImagePath on MvxImageViewLoader?
如何获取UImage的LocalResourcePath?
How can I get the LocalResourcePath for an UImage?
var imageViewLoader = new MvxImageViewLoader(() => imageView);
imageViewLoader.DefaultImagePath = UIImage.FromBundle("images/Default.png");
imageViewLoader.ErrorImagePath = UIImage.FromBundle("images/Error.png");
推荐答案
在-但尚未对此进行复制/发布.
There has also been a recent question saying ErrorImagePath
was not working correctly in some http error cases - Adding user agent header to image download request - but no reproduction/issue has been made on this yet.
这篇关于MvvmCross:MvxImageViewLoader如何设置DefaultImagePath属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!