<Window x:Class="PlantDemo.PresetWindow"
        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:PlantDemo"
        mc:Ignorable="d"
        Title="初始设置" Height="180" Width="300" FontSize="18" WindowStyle="ToolWindow">
    <StackPanel>
        <Label Content="请输入初始阳光数:" Margin="5"/>
        <TextBox Name="tbSunScore" Text="2500" TextAlignment="Center" Margin="5" Width="100" />
        <Button Content="确定" Margin="5" Width="100" Click="Button_Click"/>
    </StackPanel>
</Window>
