C # UWP Windows 10 project
The model has a collection of objects:
private ObservableCollection<GroupInfoList> _groupedTransactions = null; public ObservableCollection<GroupInfoList> groupedTransactions { get { if (_groupedTransactions == null) { _groupedTransactions = DBManager.getGroupedTransactions(); } return _groupedTransactions; } set { _groupedTransactions = value; } } When I add \ change \ delete items one by one, everything is ok, the changes are immediately displayed in the ListView , but when I need to completely update the collection:
private async void Signals_NeedRefreshTransEvent() { await Task.Run(() => { groupedTransactions = DBManager.getGroupedTransactions(); }); } That ListView does not change, and will stop responding to future changes. How to make it update the UI without updating the source in the form code?