1. 用法介绍

<Window x:Class="WPF_Study_Solution.window3"
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"
xmlns:local="clr-namespace:WPF_Study_Solution"
mc:Ignorable="d"
Title="window3" Height="450" Width="800">
<Window.Resources>
<Style TargetType="Button">
<Setter Property="Background" Value="Green"/>
<Setter Property="FontSize" Value="20"/>
<Setter Property="Width" Value="200"/>
<Setter Property="Height" Value="30"/>
</Style>
</Window.Resources>
<StackPanel>
<Button Content="登录"/>
<Button Content="退出"/>
<Button Content="忘记密码"/>