Exception:窗口尚未加载,无法获取句柄

报错信息 1
InvalidOperationException: 窗口尚未加载,无法获取句柄
StackTrace:
   在 DynamicClass.各种功能的类.设置窗口鼠标穿透_布尔启用或禁用(Window window, Boolean enable)
   在 DynamicClass.各种功能的类.火焰边框(FrameworkElement 控件, String folderPath, Int32 intervalMilliseconds)
   在 DynamicClass.MainWindow.<>c__DisplayClass75.<OnWindowLoaded>b__6d(Object sender211, RoutedEventArgs e121)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.Controls.MenuItem.InvokeClickAfterRender(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)

版本:1.43.57 2025-04-07 05:00 Microsoft Windows NT 10.0.22631.0