Exception:此 Visual 未连接到 PresentationSource。

报错信息 1
InvalidOperationException: 此 Visual 未连接到 PresentationSource。
StackTrace:
   在 System.Windows.Media.Visual.PointToScreen(Point point)
   在 DynamicClass.FloatingBallWindow.IsMouseOverMenu()
   在 DynamicClass.FloatingBallWindow.<OnWindowLoaded>b__11(Object s, EventArgs e)
   在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   在 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.45.0 2026-03-15 19:01 Microsoft Windows NT 10.0.26200.0
版本:1.45.0 2026-03-13 16:54 Microsoft Windows NT 10.0.26200.0
版本:1.44.22 2026-03-12 21:20 Microsoft Windows NT 10.0.19045.0
报错信息 2
InvalidOperationException: 此 Visual 未连接到 PresentationSource。
StackTrace:
   在 System.Windows.Media.Visual.PointToScreen(Point point)
   在 DynamicClass.FloatingBallWindow.IsMouseNearBall()
   在 DynamicClass.FloatingBallWindow.HideTimer_Tick(Object sender, EventArgs e)
   在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   在 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.45.0 2026-03-08 18:24 Microsoft Windows NT 10.0.26100.0
版本:1.44.22 2026-03-08 15:57 Microsoft Windows NT 10.0.19045.0
版本:1.45.0 2026-03-08 15:28 Microsoft Windows NT 10.0.26200.0
报错信息 3
InvalidOperationException: 此 Visual 未连接到 PresentationSource。
StackTrace:
   在 System.Windows.Media.Visual.PointToScreen(Point point)
   在 DynamicClass.WindowScript.ShowPreview(BitmapSource bitmap)
   在 DynamicClass.WindowScript.<InitializePreviewWindow>b__27(Object s, EventArgs e)
   在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   在 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-03-04 14:03 Microsoft Windows NT 10.0.22631.0