Exception:延迟 Refresh 时无法更改或检查 CollectionView 的内容或 Current 位置。

报错信息

InvalidOperationException: 延迟 Refresh 时无法更改或检查 CollectionView 的内容或 Current 位置。
StackTrace:
   在 System.Windows.Data.CollectionView.VerifyRefreshNotDeferred()
   在 System.Windows.Data.CollectionView.get_CurrentPosition()
   在 System.Windows.Data.ListCollectionView.ProcessCollectionChangedWithAdjustedIndex(NotifyCollectionChangedEventArgs args, Int32 adjustedOldIndex, Int32 adjustedNewIndex)
   在 System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   在 System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   在 System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
   在 DynamicClass.cc.<<初始化>b__110>d__208.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

解决方法

暂无解决方案。

相关信息
1 查看
18天13小时前
Quicker版本
版本 反馈次数
1.44.23 1