Exception:调用的目标发生了异常。关闭 Window 之后,无法设置 Visibility,也无法调用 Show、ShowDialogor 或 WindowInteropHelper.EnsureHandle。

报错信息

TargetInvocationException: 调用的目标发生了异常。
StackTrace:
   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   在 System.Delegate.DynamicInvokeImpl(Object[] args)
   在 Microsoft.Win32.SystemEvents.SystemEventInvokeInfo.InvokeCallback(Object arg)
   在 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)

InvalidOperationException: 关闭 Window 之后,无法设置 Visibility,也无法调用 Show、ShowDialogor 或 WindowInteropHelper.EnsureHandle。
StackTrace:
   在 System.Windows.Window.VerifyCanShow()
   在 System.Windows.Window.Show()
   在 DynamicClass.MainWindow.<>c__DisplayClassb2.<OnWindowLoaded>b__60(Object sender, PowerModeChangedEventArgs e)

 

解决方法

暂无解决方案。

相关信息
1 查看
26天19小时前
Quicker版本
版本 反馈次数
1.44.15 1