Exception:无法将类型为“System.Windows.Controls.TextBox”的对象强制转换为类型“System.Windows.Controls.TextBlock”。

报错信息 1
InvalidCastException: 无法将类型为“System.Windows.Controls.TextBox”的对象强制转换为类型“System.Windows.Controls.TextBlock”。
StackTrace:
   在 DynamicClass.<OnWindowLoaded>d__8.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)

版本:1.43.63 2025-03-24 14:28 Microsoft Windows NT 10.0.19045.0