从可观察的集合中删除项目时,我无法更新用户界面

时间:2019-12-28 08:33:00

标签: .net observablecollection

var _Segment = SessionData.OfflineDB.GetData<CountriesModel>().Where(i => i.id == _countryItem.id).SingleOrDefault();

_Segment.FavouriteCountries = false;
_Segment.Favourite = "imgheartdeselected.png";

SessionData.OfflineDB.UpdateItem<CountriesModel>(_Segment);

_Segment = _countriesCollectionList.Where(i => i.id == _countryItem.id).SingleOrDefault();

_countriesCollectionList.Remove(_Segment);

0 个答案:

没有答案