Exception:值不能为 null。 参数名: element

报错信息 1
ArgumentNullException: 值不能为 null。
参数名: element
StackTrace:
   在 System.Windows.Controls.Canvas.GetLeft(UIElement element)
   在 DynamicClass.文本跑马灯控制器.<>c__DisplayClass4a.<计算文本并启动动画>b__49(Object s, 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.RenderMessageHandler(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.44.55 2026-04-16 16:15 Microsoft Windows NT 10.0.28000.0