<Window x:Class="_5_WPF样式和行为_2创建样式对象.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Icon="public/003540AH4M72.jpg" Title="_5_WPF样式和行为_2创建样式对象" Height="450" Width="800">
    <StackPanel>

        <Button Padding="5" Margin="5">
            <Button.Style>
                <Style>
                    <Setter Property="Control.FontFamily" Value="Times New Roman" />
                    <Setter Property="Control.FontSize" Value="18" />
                    <Setter Property="Control.FontWeight" Value="Bold" />
                </Style>
            </Button.Style>

            <Button.Content>自定义按钮</Button.Content>
        </Button>
    </StackPanel>
</Window>