Exception:The specified Visual is not a descendant of this Visual.

报错信息

InvalidOperationException: The specified Visual is not a descendant of this Visual.
StackTrace:
   at System.Windows.Media.Visual.TrySimpleTransformToAncestor(Visual ancestor, Boolean inverse, GeneralTransform& generalTransform, Matrix& simpleTransform)
   at System.Windows.Media.Visual.TransformToDescendant(Visual descendant)
   at System.Windows.Controls.ScrollViewer.ShouldManipulateScroll(ManipulationStartingEventArgs e, ScrollContentPresenter viewport)
   at System.Windows.Controls.ScrollViewer.OnManipulationStarting(ManipulationStartingEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.ManipulationLogic.RaiseStarting()
   at System.Windows.Input.ManipulationLogic.ReportFrame(ICollection`1 manipulators)
   at System.Windows.Input.ManipulationDevice.ReportFrame()
   at System.Windows.Input.ManipulationDevice.OnRendering(Object sender, EventArgs e)
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

解决方法

暂无解决方案。

相关信息
0 查看
2023-11-24 10:25
Quicker版本
版本 反馈次数