Exception:指定的索引已经在使用。请先在指定的索引处断开 Visual 子级。

报错信息 1
ArgumentException: 指定的索引已经在使用。请先在指定的索引处断开 Visual 子级。
--Message: 指定的索引已经在使用。请先在指定的索引处断开 Visual 子级。
StackTrace:
   在 System.Windows.Media.VisualCollection.set_Item(Int32 index, Visual value)
   在 System.Windows.Controls.UIElementCollection.set_Item(Int32 index, UIElement value)
   在 DynamicClass.Script.<>c__DisplayClass12.<LoadAccounts>b__11(Object s, EventArgs e)
   在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   在 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-08-12 11:19 Microsoft Windows NT 10.0.19045.0