private void UpdateTasekViewUI() { App.Current.Dispatcher.BeginInvoke(new Action(() => { lock (TaskListLocker) { var _up = new TaskViewModel(); TaskViewList.Add(_up); TaskViewList.Remove(_up); } })); }