InvalidCastException: 指定的转换无效。 StackTrace: 在 DynamicClass.<>c__DisplayClassc.<OnWindowLoaded>b__b(Object sender, EventArgs args) 在 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)