<Window.Resources>
<Style
TargetType="Button">
<Setter Property="Background" Value="Yellow" />
<Setter Property="Margin" Value="5" />
<Setter Property="FontFamily" Value="Comic Sans MS"/>
<Setter Property="FontSize" Value="14"/>
</Style>
</Window.Resources>
TargetType类型,Property属性,Value值
BasedOn继承属性
颜色填充
<Setter Property="Background"><Setter.Value>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<LinearGradientBrush.GradientStops>
<GradientStop Offset="0.0" Color="#fff" />
<GradientStop Offset="1.0" Color="#009" />
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Setter.Value>
</Setter>