图像源绑定不';t在Xamarin表单中更新ListView内部
我有一个内部有自定义viewcell的listview,viewcell有一个绑定到ImageFile属性的图像控件图像源绑定不';t在Xamarin表单中更新ListView内部,listview,mvvm,xamarin.android,xamarin.forms,Listview,Mvvm,Xamarin.android,Xamarin.forms,我有一个内部有自定义viewcell的listview,viewcell有一个绑定到ImageFile属性的图像控件 <ffimageloading:CachedImage Grid.RowSpan="3" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" DownsampleToViewSize="Tru
<ffimageloading:CachedImage
Grid.RowSpan="3"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand"
DownsampleToViewSize="True"
Source="{Binding ImageFile, Converter={StaticResource byteToImage}}"
Aspect="AspectFit">
<ffimageloading:CachedImage.GestureRecognizers>
<TapGestureRecognizer NumberOfTapsRequired="1" Tapped="OnTakePicture"/>
</ffimageloading:CachedImage.GestureRecognizers>
</ffimageloading:CachedImage>
OnImageClick我正在更改ImageFile源,但Ui未得到反映
注意:-一旦我向下滚动并返回,它将反映更新的图像
请提供解决方案。这很奇怪,但问题是MvvmCross属性更改事件 我曾将MvvmCross用作项目的mvvmhelper,但MvxViewModel在notifyproperty changed事件中似乎表现不好
我只是用我的INotifyPropertyChanged接口的自定义实现进行了替换,这个问题已经解决了请在后面添加您绑定到的模型。也许您没有实现INotifyPropertyChanged接口?@Joehl我的模型类已经实现了INotifyPropertyChanged接口。。。正如我所说的,属性被正确更新,甚至在向下滚动listview并返回后图像也会被反射。。。