2017-03-23 47 views
0

我有定製viewcell內viewcell具有被bindded到鏡像文件屬性圖像控制列表視圖圖像源綁定在裏面的ListView Xamarin不更新窗體

<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> 

OnImage點擊我改變的鏡像文件源但Ui不反映

注意: - 一旦我向下滾動,回來它反映了更新的圖像。

請提供解決方案以解決此問題。

+0

請添加在模型後,在其綁定到。也許你沒有實現'INotifyPropertyChanged'接口? – Joehl

+0

@Joehl我的模型類已經實現了INotifyPropertyChanged接口...正如我說的屬性更新正常甚至圖像越來越反映後滾動listview下來,並回來了...... –

回答

0

這是很奇怪的,但問題是與MvvmCross屬性更改事件......

我用MvvmCross作爲mvvmhelper爲我的項目,但似乎MvxViewModel犯規與notifyproperty改變事件表現良好。

我只是用我的INotifyPropertyChanged接口的自定義實現替換,這個問題已經解決