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

报错信息 1
ArgumentNullException: 值不能为 null。
参数名: element
StackTrace:
   在 MS.Internal.Media.VisualTreeUtils.AsNonNullVisual(DependencyObject element, Visual& visual, Visual3D& visual3D)
   在 System.Windows.Media.VisualTreeHelper.GetParent(DependencyObject reference)
   在 System.Windows.Controls.VirtualizingStackPanel.FindScrollOffset(Visual v)
   在 System.Windows.Controls.VirtualizingStackPanel.OnAnchorOperation(Boolean isAnchorOperationPending)
   在 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-06-26 15:40 Microsoft Windows NT 10.0.19045.0