Exception:關閉視窗之後,無法設定 Visibility 或呼叫 Show、ShowDialog 或 WindowInteropHelper.EnsureHandle。

报错信息

InvalidOperationException: 關閉視窗之後,無法設定 Visibility 或呼叫 Show、ShowDialog 或 WindowInteropHelper.EnsureHandle。
StackTrace:
   於 System.Windows.Window.VerifyCanShow()
   於 System.Windows.Window.CreateSourceWindow(Boolean duringShow)
   於 System.Windows.Interop.WindowInteropHelper.EnsureHandle()
   於 Quicker.View.ImageViewerWindow.GHF7zGQuEOx(ImageViewerWindow  , Double  )
   於 Quicker.View.ImageViewerWindow.sud7HuGwMiH()
   於 Quicker.View.ImageViewerWindow.BlF7HDqtHwX(Object  , MouseButtonEventArgs  )
   於 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   於 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   於 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   於 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   於 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   於 System.Windows.Input.InputManager.ProcessStagingArea()
   於 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   於 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   於 System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   於 System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   於 System.Windows.Interop.HwndSource.InputFilterMessage(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)

 

解决方法

暂无解决方案。

相关信息
0 查看
2024-05-13 15:49
Quicker版本
版本 反馈次数