我收到“指定的Visual不是此Visual”异常的后代。
您能否请一定帮助我们获取此异常的情况,因为stacktrace无法帮助我确定问题?
栈跟踪:
在System.Windows.Media.Visual.TrySimpleTransformToAncestor(Visual 祖先,布尔逆,GeneralTransform& generalTransform,Matrix& simpleTransform)at System.Windows.Media.Visual.InternalTransformToAncestor(视觉 ancestor,Boolean inverse)at System.Windows.Window.HandleWmNcHitTestMsg(IntPtr lParam,IntPtr& refInt)在System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg,IntPtr wParam,IntPtr lParam,Boolean&处理) System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr的 hwnd,Int32 msg,IntPtr wParam,IntPtr lParam,Boolean&处理) MS.Win32.HwndWrapper.WndProc(IntPtr hwnd,Int32 msg,IntPtr wParam, IntPtr lParam,Boolean&处理) MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)at System.Windows.Threading.ExceptionWrapper.InternalRealCall(代表 回调,对象args,Int32 numArgs)at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(对象 source,Delegate方法,Object args,Int32 numArgs,Delegate catchHandler)