当我使用这个:
<Label Grid.Column="2"
Grid.Row="8"
Content="{x:Static res:Strings.ToolPanelEditView_Validation_MandatoryField}" >
</Label>
它可以正常运行。
但是当我添加Style标签时:
<Label Grid.Column="2"
Grid.Row="8"
Content="{x:Static res:Strings.ToolPanelEditView_Validation_MandatoryField}" >
<Style>
<Setter Property="Label.Margin" Value="0" />
</Style>
</Label>
无法编译,报错为:
属性“Content”被设置了多次。