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

报错信息

InvalidOperationException: 指定的 Visual 不是此 Visual 的后代。
   在 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.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)


 

解决方法

暂无解决方案。

相关信息
3 查看
9天14小时前
Quicker版本
版本 反馈次数
1.42.33 1
1.42.24 1
1.40.11 1