Exception:设置属性“System.Windows.Style.BasedOn”时引发了异常。无法将类型为“System.Windows.Thickness”的对象强制转换为类型“System.Windows.Style”。

报错信息 1
XamlParseException: 设置属性“System.Windows.Style.BasedOn”时引发了异常。
--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__DisplayClass27_0.U5FkOLuh9JJ()
   在 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)

InvalidCastException: 无法将类型为“System.Windows.Thickness”的对象强制转换为类型“System.Windows.Style”。
StackTrace:
   在 System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_Style_BasedOn>b__296_0(Object target, Object value)
   在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)

版本:1.42.32 2024-04-25 14:45 Microsoft Windows NT 10.0.19045.0