在APP.xaml 中加入
<pre name="code" class="html"><Application.Resources>
<local:LocalizedStrings xmlns:local="clr-namespace:test1" x:Key="LocalizedStrings"/>
<Style x:Name="myBt" TargetType="Button">
<Setter Property="FontFamily" Value="Verdana"></Setter>
<Setter Property="FontSize" Value="30"></Setter>
<Setter Property="Background" Value="CornflowerBlue"/>
</Style>
</Application.Resources>