ArgumentOutOfRangeException: 指定的参数已超出有效值的范围。 参数名: index --Message: 指定的参数已超出有效值的范围。 参数名: index StackTrace: 在 System.Windows.Controls.ItemCollection.GetItemAt(Int32 index) 在 DynamicClass.aa.<>c__DisplayClass1a9.<<OnWindowLoaded>b__161>d__234.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 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)