Exception:无法使用“System.Windows.Media.Animation.DoubleAnimation”动态“ToastNotifications.Messages.Warning.WarningDisplayPart”上的“Height”属性。有关详细信息,请查看内部异常。未将对象引用设置到对象的实例。

报错信息 1
AnimationException: 无法使用“System.Windows.Media.Animation.DoubleAnimation”动态“ToastNotifications.Messages.Warning.WarningDisplayPart”上的“Height”属性。有关详细信息,请查看内部异常。
--Clock: System.Windows.Media.Animation.AnimationClock
--Property: Height
--Target: ToastNotifications.Messages.Warning.WarningDisplayPart
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)

NullReferenceException: 未将对象引用设置到对象的实例。
StackTrace:
   在 System.Windows.Media.Animation.DoubleAnimation.GetCurrentValueCore(Double defaultOriginValue, Double defaultDestinationValue, AnimationClock animationClock)
   在 System.Windows.Media.Animation.DoubleAnimationBase.GetCurrentValue(Object defaultOriginValue, Object defaultDestinationValue, AnimationClock animationClock)
   在 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)

版本:1.44.31 2025-11-26 16:41 Microsoft Windows NT 10.0.19044.0