Exception:在“System.Windows.StaticResourceExtension”上提供值时引发了异常。Baml 流中出现意外记录。尝试添加到不是集合或具有 TypeConverter 的 DropShadowEffect。

报错信息 1
XamlParseException: 在“System.Windows.StaticResourceExtension”上提供值时引发了异常。
--LineNumber: 0
--LinePosition: 0
--BaseUri: pack://application:,,,/Quicker;component/view/settings/unhandledexceptionwindow.xaml
StackTrace:
   在 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.View.UnhandledExceptionWindow.InitializeComponent()
   在 Quicker.View.UnhandledExceptionWindow..ctor(Exception ex, Boolean canIgnore)
   在 Quicker.App.<>c__DisplayClass28_0.aZ5PEawI4CK()
   在 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)
   在 System.Windows.Threading.DispatcherOperation.InvokeImpl()
   在 MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

XamlParseException: Baml 流中出现意外记录。尝试添加到不是集合或具有 TypeConverter 的 DropShadowEffect。
StackTrace:
   在 System.Windows.Baml2006.Baml2006Reader.InjectPropertyAndFrameIfNeeded(XamlType elementType, SByte flags)
   在 System.Windows.Baml2006.Baml2006Reader.Process_ElementStart()
   在 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.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
   在 System.Windows.ResourceDictionary.GetValue(Object key, 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.StaticResourceExtension.FindResourceInAppOrSystem(IServiceProvider serviceProvider, Boolean allowDeferredReference, Boolean mustReturnDeferredResourceReference)
   在 System.Windows.StaticResourceExtension.FindResourceInEnviroment(IServiceProvider serviceProvider, Boolean allowDeferredReference, Boolean mustReturnDeferredResourceReference)
   在 System.Windows.StaticResourceExtension.TryProvideValueImpl(IServiceProvider serviceProvider, Boolean allowDeferredReference, Boolean mustReturnDeferredResourceReference)
   在 System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
   在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)

版本:1.44.22 2025-07-29 14:50 Microsoft Windows NT 10.0.19045.0