Exception:Could not get parent index in TreeListBox.

报错信息 1
InvalidOperationException: Could not get parent index in TreeListBox.
StackTrace:
   在 PropertyTools.Wpf.TreeListBox.InsertItems(Object parent, IList newItems, Int32 newStartingIndex)
   在 PropertyTools.Wpf.TreeListBox.ChildCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   在 System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   在 System.Collections.ObjectModel.ObservableCollection`1.ClearItems()
   在 IntelliTools.ViewModel.Favor.FavorItemViewModel.Refresh()
   在 IntelliTools.ViewModel.Favor.FavorItemViewModelProvider.<.ctor>b__6_1(Change`2 c)
   在 DynamicData.Kernel.EnumerableEx.ForEach[T](IEnumerable`1 source, Action`1 action)
   在 System.Reactive.Linq.ObservableImpl.Do`1.OnNext._.OnNext(TSource value)
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Reactive.Stubs.<>c.<.cctor>b__2_1(Exception ex)
   在 System.Reactive.AnonymousSafeObserver`1.OnError(Exception error)
   在 System.Reactive.Sink`1.ForwardOnError(Exception error)
   在 System.Reactive.Linq.ObservableImpl.Do`1.OnNext._.OnNext(TSource value)
   在 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.44.27 2025-11-12 10:58 Microsoft Windows NT 10.0.19045.0
报错信息 2
InvalidOperationException: Could not get parent index in TreeListBox.
StackTrace:
   在 PropertyTools.Wpf.TreeListBox.InsertItems(Object parent, IList newItems, Int32 newStartingIndex)
   在 PropertyTools.Wpf.TreeListBox.ChildCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   在 System.Collections.ObjectModel.ReadOnlyObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   在 System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   在 System.Collections.ObjectModel.ObservableCollection`1.SetItem(Int32 index, T item)
   在 DynamicData.Binding.SortAndBind`2.SortApplicator.ApplyChanges(IChangeSet`2 changes)
   在 DynamicData.Binding.SortAndBind`2.SortApplicator.ProcessChanges(IChangeSet`2 changeSet, Boolean isFirstTimeLoad)
   在 DynamicData.Binding.SortAndBind`2.<>c__DisplayClass2_0.<.ctor>b__0(IChangeSet`2 changes, Int32 index)
   在 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.AnonymousSafeObserver`1.OnError(Exception error)
   在 System.Reactive.Sink`1.ForwardOnError(Exception error)
   在 System.Reactive.Linq.ObservableImpl.Select`2.SelectorIndexed._.OnNext(TSource value)
   在 System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value)
   在 System.Reactive.Linq.ObservableImpl.Where`1.Predicate._.OnNext(TSource value)
   在 System.Reactive.Linq.ObservableImpl.Scan`2._.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.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.44.22 2025-10-20 17:21 Microsoft Windows NT 6.1.7601 Service Pack 1