Exception:“BorderBrush”属性未指向路径“(BorderBrush).(0)”中的 DependencyObject。

报错信息 1
InvalidOperationException: “BorderBrush”属性未指向路径“(BorderBrush).(0)”中的 DependencyObject。
StackTrace:
   在 System.Windows.Media.Animation.Storyboard.VerifyPathIsAnimatable(PropertyPath path)
   在 System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer)
   在 System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer)
   在 System.Windows.Media.Animation.Storyboard.BeginCommon(DependencyObject containingObject, INameScope nameScope, HandoffBehavior handoffBehavior, Boolean isControllable, Int64 layer)
   在 DynamicClass.悬浮球.创建悬浮球()
   在 DynamicClass.悬浮球..ctor(Window 宿主窗口)
   在 DynamicClass.MainViewModel..ctor()
   在 DynamicClass.a.<OnWindowCreated>d__7.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.44.23 2025-12-07 12:35 Microsoft Windows NT 10.0.22621.0