Exception:初始化“System.Windows.Controls.ListBox”时引发了异常。索引超出范围。必须为非负值并小于集合大小。 参数名: index

报错信息

XamlParseException
   在 System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   在 System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   在 System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   在 System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   在 Quicker.Settings.SettingsWindow2.InitializeComponent()
   在 Quicker.Settings.SettingsWindow2..ctor(Nullable`1 preloadPageId)
   在 Quicker.Domain.Services.AppWindowManager.<>c__DisplayClass0_0.MN8sKusNhjk()
   在 Quicker.Utilities.AppHelper.RunOnUiThread(Boolean waiteToComplete, Action acton, DispatcherPriority dispatcherPriority)
   在 Quicker.Domain.Services.AppWindowManager.ShowSettingsWindow(Nullable`1 pageId)
   在 Quicker.View.PopupWindow.Dwfj4k8fDw(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)

ArgumentOutOfRangeException
索引超出范围。必须为非负值并小于集合大小。
参数名: index
   在 System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   在 System.Windows.Baml2006.Baml2006Reader.Process_PropertyWithStaticResourceId()
   在 System.Windows.Baml2006.Baml2006Reader.Process_OneBamlRecord()
   在 System.Windows.Baml2006.Baml2006Reader.ReadObject(KeyRecord record)
   在 System.Windows.ResourceDictionary.CreateObject(KeyRecord key)
   在 System.Windows.ResourceDictionary.OnGettingValue(Object key, Object& value, Boolean& canCache)
   在 System.Windows.ResourceDictionary.OnGettingValuePrivate(Object key, Object& value, Boolean& canCache)
   在 System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
   在 System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
   在 System.Windows.FrameworkElement.FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, DependencyProperty dp, Object resourceKey, Object unlinkedParent, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, DependencyObject boundaryElement, Boolean isImplicitStyleLookup, Object& source)
   在 System.Windows.FrameworkElement.FindImplicitStyleResource(FrameworkElement fe, Object resourceKey, Object& source)
   在 System.Windows.FrameworkElement.GetRawValue(DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry& entry)
   在 System.Windows.FrameworkElement.EvaluateBaseValueCore(DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry& newEntry)
   在 System.Windows.DependencyObject.EvaluateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry newEntry, OperationType operationType)
   在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   在 System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
   在 System.Windows.FrameworkElement.UpdateStyleProperty()
   在 System.Windows.FrameworkElement.OnInitialized(EventArgs e)
   在 System.Windows.Controls.Primitives.Selector.OnInitialized(EventArgs e)
   在 System.Windows.FrameworkElement.TryFireInitialized()
   在 System.Windows.Controls.ItemsControl.EndInit()
   在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.InitializationGuard(XamlType xamlType, Object obj, Boolean begin) 

解决方法

暂无解决方案。

相关信息
0 查看
2023-08-31 16:48
Quicker版本
版本 反馈次数