Exception:ShowActivated 为 false 且 WindowState 设置为 Maximized 时无法显示窗口。

报错信息 1
InvalidOperationException: ShowActivated 为 false 且 WindowState 设置为 Maximized 时无法显示窗口。
StackTrace:
   在 System.Windows.Window.VerifyConsistencyWithShowActivated()
   在 System.Windows.Window.CoerceVisibility(DependencyObject d, Object value)
   在 System.Windows.DependencyObject.ProcessCoerceValue(DependencyProperty dp, PropertyMetadata metadata, EntryIndex& entryIndex, Int32& targetIndex, EffectiveValueEntry& newEntry, EffectiveValueEntry& oldEntry, Object& oldValue, Object baseValue, Object controlValue, CoerceValueCallback coerceValueCallback, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, Boolean skipBaseValueChecks)
   在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   在 System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   在 System.Windows.Window.UpdateVisibilityProperty(Visibility value)
   在 System.Windows.Window.Show()
   在 OcrStudio.Host.TranslateFloatWindowService.PresentWindow(Window owner, Boolean resetState, Boolean focusInput)
   在 OcrStudio.Host.TranslateFloatWindowService.<>c__DisplayClass20_0.<Show>b__0()
   在 OcrStudio.Services.Wpf.UiDispatcher.Run(Action action, DispatcherPriority priority)
   在 OcrStudio.Host.TranslateFloatWindowService.Show(Window owner)
   在 OcrStudio.Host.OcrStudioRunnerService.ShowTranslateFloat(IActionContext context, Nullable`1 floatLaunch)
   在 OcrStudio.Host.OcrStudioRunnerService.Run(IActionContext context, String command, String legacyLaunchMode)
   在 OcrStudio.Runner.<>c__DisplayClass3_0.<Run>b__0()
   在 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.45.5 2026-07-03 15:18 Microsoft Windows NT 10.0.26200.0