Exception:当 ItemsSource 正在使用时操作无效。改用 ItemsControl.ItemsSource 访问和修改元素。

报错信息

InvalidOperationException
   在 System.Windows.Controls.ItemCollection.CheckIsUsingInnerView()
   在 System.Windows.Controls.ItemCollection.Insert(Int32 insertIndex, Object insertItem)
   在 IntelliTools.View.Tools.FavorIconControl.<>c__DisplayClass21_0.<GetListBoxMenu>b__1(Object s, RoutedEventArgs e)
   在 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 查看
25天2小时前
Quicker版本
版本 反馈次数
1.43.19 1