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.HoverRuntime_9d01fc3518ed.<>c__DisplayClass281.<>c__DisplayClass28c.<Settings>b__258()
   在 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.45.5 2026-10-06 01:15 Microsoft Windows NT 10.0.26200.0