Exception:在 AddNew 或 EditItem 事务过程中不允许“Refresh”。

报错信息 1
InvalidOperationException: 在 AddNew 或 EditItem 事务过程中不允许“Refresh”。
StackTrace:
   在 System.Windows.Data.CollectionView.Refresh()
   在 __ScriptExecution.__r0tyqia7.QuickerScript.MainViewModel.ClearFiltersInternal()
   在 __ScriptExecution.__r0tyqia7.QuickerScript.MainViewModel.DoClearSearchAndMaybeJump()
   在 __ScriptExecution.__r0tyqia7.QuickerScript.MainViewModel.HandleKey(Key key, ModifierKeys mods)
   在 __ScriptExecution.__r0tyqia7.QuickerScript.<>c.<WireEvents>b__73_0(Object s, KeyEventArgs e)
   在 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.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   在 System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   在 System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   在 System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   在 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-08-24 10:39 Microsoft Windows NT 10.0.22000.0