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

报错信息

XamlParseException: 设置属性“System.Windows.Style.BasedOn”时引发了异常。
   在 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.VHIdcNgmV2J3EyPtNOMF(Object , Object )
   在 Quicker.View.UnhandledExceptionWindow.InitializeComponent()
   在 Quicker.View.UnhandledExceptionWindow..ctor(Exception ex, Boolean canIgnore)
   在 Quicker.App.<>c__DisplayClass27_0.MA2ypI0WcJH()
   在 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”。
   在 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 查看
9天20小时前
Quicker版本
版本 反馈次数
1.42.32 1