Exception:指定的 Visual 不是此 Visual 的后代。

报错信息 1
InvalidOperationException: 指定的 Visual 不是此 Visual 的后代。
StackTrace:
   在 System.Windows.Media.Visual.TrySimpleTransformToAncestor(Visual ancestor, Boolean inverse, GeneralTransform& generalTransform, Matrix& simpleTransform)
   在 System.Windows.Media.Visual.TransformToDescendant(Visual descendant)
   在 System.Windows.Controls.ScrollViewer.ShouldManipulateScroll(ManipulationStartingEventArgs e, ScrollContentPresenter viewport)
   在 System.Windows.Controls.ScrollViewer.OnManipulationStarting(ManipulationStartingEventArgs e)
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   在 System.Windows.Input.InputManager.ProcessStagingArea()
   在 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   在 System.Windows.Input.ManipulationLogic.RaiseStarting()
   在 System.Windows.Input.ManipulationLogic.ReportFrame(ICollection`1 manipulators)
   在 System.Windows.Input.ManipulationDevice.ReportFrame()
   在 System.Windows.Input.ManipulationDevice.OnRendering(Object sender, EventArgs e)
   在 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   在 System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(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.43.0 2024-06-24 14:04 Microsoft Windows NT 6.3.9600.0
报错信息 2
InvalidOperationException: 指定的 Visual 不是此 Visual 的后代。
StackTrace:
   在 System.Windows.Media.Visual.TrySimpleTransformToAncestor(Visual ancestor, Boolean inverse, GeneralTransform& generalTransform, Matrix& simpleTransform)
   在 System.Windows.Media.Visual.TransformToDescendant(Visual descendant)
   在 System.Windows.Controls.ScrollViewer.ShouldManipulateScroll(ManipulationStartingEventArgs e, ScrollContentPresenter viewport)
   在 System.Windows.Controls.ScrollViewer.OnManipulationStarting(ManipulationStartingEventArgs e)
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   在 System.Windows.Input.InputManager.ProcessStagingArea()
   在 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   在 System.Windows.Input.ManipulationLogic.RaiseStarting()
   在 System.Windows.Input.ManipulationLogic.ReportFrame(ICollection`1 manipulators)
   在 System.Windows.Input.ManipulationDevice.ReportFrame()
   在 System.Windows.Input.ManipulationDevice.OnRendering(Object sender, EventArgs e)
   在 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.43.0 2024-06-22 18:25 Microsoft Windows NT 10.0.19045.0
版本:1.43.0 2024-06-19 01:01 Microsoft Windows NT 10.0.18363.0