Exception:无法使用“System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames”动态“System.Windows.Controls.TextBlock”上的“Text”属性。有关详细信息,请查看内部异常。应用于“Text”属性的动画计算“2025/5/13 10:54:27”的当前值,该值不是此属性的有效值。

报错信息

AnimationException: 无法使用“System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames”动态“System.Windows.Controls.TextBlock”上的“Text”属性。有关详细信息,请查看内部异常。
--Clock: System.Windows.Media.Animation.AnimationClock
--Property: Text
--Target: System.Windows.Controls.TextBlock
StackTrace:
   在 System.Windows.Media.Animation.AnimationStorage.OnCurrentTimeInvalidated(Object sender, EventArgs args)
   在 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.RenderMessageHandler(Object resizedCompositionTarget)
   在 System.Windows.Interop.HwndTarget.OnResize()
   在 System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   在 System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 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)

InvalidOperationException: 应用于“Text”属性的动画计算“2025/5/13 10:54:27”的当前值,该值不是此属性的有效值。
StackTrace:
   在 System.Windows.Media.Animation.AnimationStorage.GetCurrentPropertyValue(AnimationStorage storage, DependencyObject d, DependencyProperty dp, PropertyMetadata metadata, Object baseValue)
   在 System.Windows.Media.Animation.AnimationStorage.OnCurrentTimeInvalidated(Object sender, EventArgs args)

 

解决方法

暂无解决方案。

相关信息
0 查看
2025-05-13 10:54
Quicker版本
版本 反馈次数