报错信息
System.Windows.Markup.XamlParseException:““在“System.Windows.StaticResourceExtension”上提供值时引发了异常。”,行号为“42”,行位置为“40”。
根据报错信息检查到报错的位置,发现在UI页面写错了控件的Style值
<Label Content="中文名称:" Style="{StaticResource RightContentLabel}" />
改正过来即可
报错信息
System.Windows.Markup.XamlParseException:““在“System.Windows.StaticResourceExtension”上提供值时引发了异常。”,行号为“42”,行位置为“40”。
根据报错信息检查到报错的位置,发现在UI页面写错了控件的Style值
<Label Content="中文名称:" Style="{StaticResource RightContentLabel}" />
改正过来即可