Exception:该类型的 CollectionView 不支持从调度程序线程以外的线程对其 SourceCollection 进行的更改。

报错信息 1
NotSupportedException: 该类型的 CollectionView 不支持从调度程序线程以外的线程对其 SourceCollection 进行的更改。
StackTrace:
   在 System.Windows.Data.CollectionView.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   在 System.Collections.ObjectModel.ReadOnlyObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   在 System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   在 DynamicData.Binding.SortAndBind`2.SortApplicator.Reset(IEnumerable`1 sorted, Boolean fireReset) 位置 /_/src/DynamicData/Binding/SortAndBind.cs:行号 145
   在 DynamicData.Binding.SortAndBind`2.<>c__DisplayClass3_1.<.ctor>b__2(IChangeSet`2 changes, Int32 index) 位置 /_/src/DynamicData/Binding/SortAndBind.cs:行号 89
   在 System.Reactive.Linq.ObservableImpl.Select`2.SelectorIndexed._.OnNext(TSource value)
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Reactive.Stubs.<>c.<.cctor>b__2_1(Exception ex)
   在 System.Reactive.ObserverBase`1.OnError(Exception error)
   在 System.Reactive.AutoDetachObserver`1.OnErrorCore(Exception exception)
   在 System.Reactive.ObserverBase`1.OnError(Exception error)
   在 System.Reactive.Sink`1.ForwardOnError(Exception error)
   在 System.Reactive.Linq.ObservableImpl.Select`2.SelectorIndexed._.OnNext(TSource value)
   在 System.Reactive.Concurrency.Synchronize`1._.OnNext(TSource value)
   在 System.Reactive.AutoDetachObserver`1.OnNextCore(T value)
   在 System.Reactive.ObserverBase`1.OnNext(T value)
   在 System.Reactive.Linq.ObservableImpl.Where`1.Predicate._.OnNext(TSource value)
   在 System.Reactive.Linq.ObservableImpl.Merge`1.Observables._.InnerObserver.OnNext(TSource value)
   在 System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value)
   在 System.Reactive.Concurrency.Synchronize`1._.OnNext(TSource value)
   在 System.Reactive.AutoDetachObserver`1.OnNextCore(T value)
   在 System.Reactive.ObserverBase`1.OnNext(T value)
   在 System.Reactive.AnonymousSafeObserver`1.OnNext(T value)
   在 System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value)
   在 System.Reactive.Linq.ObservableImpl.Throttle`1._.Propagate(UInt64 currentid)
   在 System.Reactive.Concurrency.Scheduler.Invoke[TState](ValueTuple`2 tuple)
   在 System.Reactive.Concurrency.Scheduler.<>c__78`1.<ScheduleAction>b__78_0(IScheduler _, ValueTuple`2 tuple)
   在 System.Reactive.Concurrency.UserWorkItem`1.Run()
   在 System.Reactive.Concurrency.ConcurrencyAbstractionLayerImpl.Timer.Tick()
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.TimerQueueTimer.CallCallback()
   在 System.Threading.TimerQueueTimer.Fire()
   在 System.Threading.TimerQueue.FireNextTimers()

版本:1.46.0 2026-03-31 04:43 Microsoft Windows NT 10.0.26200.0