Xamarin.android MvxImageView,can';t将ImageUrl绑定到本地资源

Xamarin.android MvxImageView,can';t将ImageUrl绑定到本地资源,xamarin.android,mvvmcross,Xamarin.android,Mvvmcross,我将MvvmCross 3.0.14与Xamarin.Android一起使用 我有一个MvxImageView,如果我使用android:src: <Mvx.MvxImageView android:layout_width="100dp" android:layout_height="75dip" android:layout_weight="1" android:src="@drawable/Card_kh"/> 及 要将MvxImageView绑定到由视图

我将MvvmCross 3.0.14与Xamarin.Android一起使用

我有一个MvxImageView,如果我使用android:src:

<Mvx.MvxImageView
  android:layout_width="100dp"
  android:layout_height="75dip"
  android:layout_weight="1"
  android:src="@drawable/Card_kh"/>



要将MvxImageView绑定到由视图模型确定的本地资源映像,我需要做什么?

问题只是资源名称中的大小写。尽管图像文件名以大写字母C开头,android:src属性以大写字母C开头,但ImageUrl的MvxBind需要小写字母C:

<Mvx.MvxImageView
  android:layout_width="100dp"
  android:layout_height="75dip"
  android:layout_weight="1"
  local:MvxBind="ImageUrl 'res:card_kh'"/>


自MVVMCross v6.0.0以来,前面的答案不再有效

如本文所述,MvxImageView已从API中删除

最新的选择是现在

必须添加此nuget包“Xamarin.FFImageLoading”,才能使下面的代码正常工作

<ffimageloading.cross.MvxCachedImageView
  android:layout_width="100dp"
  android:layout_height="75dip"
  android:layout_weight="1"
  local:MvxBind="ImagePath SomeImagePath"/>

<Mvx.MvxImageView
  android:layout_width="100dp"
  android:layout_height="75dip"
  android:layout_weight="1"
  local:MvxBind="ImageUrl SomeImagePath"/>
<Mvx.MvxImageView
  android:layout_width="100dp"
  android:layout_height="75dip"
  android:layout_weight="1"
  local:MvxBind="ImageUrl 'res:card_kh'"/>
class MyViewModel : MvxViewModel
{
  public string SomeImagePath { get { return "res:card_kh"; } }
}
<Mvx.MvxImageView
  android:layout_width="100dp"
  android:layout_height="75dip"
  android:layout_weight="1"
  local:MvxBind="ImageUrl SomeImagePath"/>
<ffimageloading.cross.MvxCachedImageView
  android:layout_width="100dp"
  android:layout_height="75dip"
  android:layout_weight="1"
  local:MvxBind="ImagePath SomeImagePath"/>