Exception:关闭 Window 之后,无法设置 Visibility,也无法调用 Show、ShowDialogor 或 WindowInteropHelper.EnsureHandle。

报错信息 1
InvalidOperationException: 关闭 Window 之后,无法设置 Visibility,也无法调用 Show、ShowDialogor 或 WindowInteropHelper.EnsureHandle。
StackTrace:
   在 System.Windows.Window.VerifyCanShow()
   在 System.Windows.Window.CreateSourceWindow(Boolean duringShow)
   在 System.Windows.Interop.WindowInteropHelper.EnsureHandle()
   在 HandyControl.Controls.Window.OnSourceInitialized(EventArgs e)
   在 System.Windows.Window.CreateSourceWindow(Boolean duringShow)
   在 System.Windows.Window.ShowHelper(Object booleanBox)
   在 cJxlLm1fdUq3Ntl7dXJ.DUemjt1qnBAF2NGlvvj.F2el91fls8O(Window  , Boolean  )
   在 Quicker.Domain.Actions.X.BuiltinRunners.UserInputStep.<>c__DisplayClass56_3.LdpXxW2BYvWuDcoJI1t.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 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.48 2025-03-14 15:52 Microsoft Windows NT 10.0.19044.0