Exception:无法将类型为“System.Windows.Media.Animation.AnimationClock”的对象强制转换为类型“System.Windows.Media.Animation.DoubleAnimation”。

报错信息 1
InvalidCastException: 无法将类型为“System.Windows.Media.Animation.AnimationClock”的对象强制转换为类型“System.Windows.Media.Animation.DoubleAnimation”。
StackTrace:
   在 DynamicClass.MainWindow.<>c__DisplayClass26.<UpdateTextAndAnimation>b__22(Object sender, EventArgs e)
   在 System.Windows.Media.Animation.Clock.FireEvent(EventPrivateKey key)
   在 System.Windows.Media.Animation.Clock.RaiseAccumulatedEvents()
   在 System.Windows.Media.Animation.TimeManager.RaiseEnqueuedEvents()
   在 System.Windows.Media.Animation.TimeManager.Tick()
   在 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   在 System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
   在 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.57 2025-03-13 19:11 Microsoft Windows NT 10.0.22631.0