Exception:给定关键字不在字典中。

报错信息 1
KeyNotFoundException: 给定关键字不在字典中。
StackTrace:
   在 System.ThrowHelper.ThrowKeyNotFoundException()
   在 System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   在 PropertyTools.Wpf.TreeListBox.RemoveItems(IList itemsToRemove)
   在 PropertyTools.Wpf.TreeListBox.ChildCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   在 System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   在 System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   在 System.Collections.ObjectModel.ObservableCollection`1.RemoveItem(Int32 index)
   在 System.Collections.ObjectModel.Collection`1.Remove(T item)
   在 IntelliTools.Domain.Favorite.FavorItemDatabase.RemoveFromParent(FavorItem item)
   在 IntelliTools.Domain.Favorite.FavorItemDatabase.Delete(FavorItem item)
   在 System.Collections.Generic.List`1.ForEach(Action`1 action)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
   在 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.10 2025-06-22 23:43 Microsoft Windows NT 10.0.19045.0