InvalidOperationException: 在 Window 关闭时,无法将 Visibility 设置为 Visible,也无法调用 Show、ShowDialog、Close 或 WindowInteropHelper.EnsureHandle。 StackTrace: 在 System.Windows.Window.VerifyNotClosing() 在 System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel) 在 DynamicClass.WindowCore.MainWindow_Deactivated(Object sender, EventArgs e) 在 System.Windows.Window.OnDeactivated(EventArgs e) 在 System.Windows.Window.HandleActivate(Boolean windowActivated) 在 System.Windows.Window.WmActivate(IntPtr wParam) 在 System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)
InvalidOperationException: 在 Window 关闭时,无法将 Visibility 设置为 Visible,也无法调用 Show、ShowDialog、Close 或 WindowInteropHelper.EnsureHandle。 StackTrace: 在 System.Windows.Window.VerifyNotClosing() 在 System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel) 在 DynamicClass.WindowStateSynchronizer.<>c__DisplayClass5.<HandleWindowEvent>b__4() 在 System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout) 在 System.Windows.Threading.Dispatcher.Invoke(Action callback) 在 DynamicClass.WindowMonitor.WinEventProc(IntPtr hWinEventHook, UInt32 eventType, IntPtr hwnd, Int32 idObject, Int32 idChild, UInt32 dwEventThread, UInt32 dwmsEventTime)
InvalidOperationException: 在 Window 关闭时,无法将 Visibility 设置为 Visible,也无法调用 Show、ShowDialog、Close 或 WindowInteropHelper.EnsureHandle。 StackTrace: 在 System.Windows.Window.VerifyNotClosing() 在 System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel) 在 DynamicClass.SmartCaptureSession.<>c__DisplayClass1.<Run>b__0(Object s, EventArgs e) 在 System.Windows.Window.OnClosed(EventArgs e) 在 System.Windows.Window.WmDestroy() 在 System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)
InvalidOperationException: 在 Window 关闭时,无法将 Visibility 设置为 Visible,也无法调用 Show、ShowDialog、Close 或 WindowInteropHelper.EnsureHandle。 StackTrace: 在 System.Windows.Window.VerifyNotClosing() 在 System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel) 在 System.Windows.Application.DoShutdown() 在 System.Windows.Application.ShutdownImpl() 在 System.Windows.Application.ShutdownCallback(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 设置为 Visible,也无法调用 Show、ShowDialog、Close 或 WindowInteropHelper.EnsureHandle。 StackTrace: 在 System.Windows.Window.VerifyNotClosing() 在 System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel) 在 System.Windows.Window.OnDeactivated(EventArgs e) 在 System.Windows.Window.HandleActivate(Boolean windowActivated) 在 System.Windows.Window.WmActivate(IntPtr wParam) 在 System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)