<Style x:Key="NormalButton" TargetType="{x:Type Button}">
<Setter Property="FontFamily" Value="GEInspiraSans-Bold" />
<Setter Property="FontSize" Value="14" />
<Setter Property="Height" Value="32"/>
<Setter Property="Width" Value="96"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border CornerRadius="8" BorderBrush="#037AA6" BorderThickness="1" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
引用样式
<Window.Resources>
<ResourceDictionary Source="/Styles/ButtonSetStyle.xaml"></ResourceDictionary>
</Window.Resources>
按钮结构绑定
Style="{StaticResource NormalButton}"