<Window x:Class="DelegateSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Delegate范例" Height="316" Width="427" FontSize="14" Loaded="Window_Loaded">
    <Grid Height="277">
        <Label Content="姓名：" Height="28" HorizontalAlignment="Left" Margin="39,21,0,0" Name="label1" VerticalAlignment="Top" />
        <TextBox Height="28" HorizontalAlignment="Left" Margin="97,21,0,0" Name="txtName" VerticalAlignment="Top" Width="159" />
        <Button Content="问好" Height="28" HorizontalAlignment="Right" Margin="0,21,49,0" Name="btnExecute" VerticalAlignment="Top" Width="75" Click="btnExecute_Click" />
        <CheckBox Content="说Hello" Height="28" HorizontalAlignment="Left" Margin="97,70,0,0" Name="chkSayHello" VerticalAlignment="Top" Width="99" Checked="CheckBox_Checked" Unchecked="CheckBox_UnChecked" />
        <CheckBox Content="说早安" Height="28" HorizontalAlignment="Left" Margin="202,70,0,0" Name="chkGoodMorning" VerticalAlignment="Top" Width="99" Checked="CheckBox_Checked" Unchecked="CheckBox_UnChecked" />
        <CheckBox Content="说午安" Height="28" HorizontalAlignment="Left" Margin="97,104,0,0" Name="chkGoodAfternoon" VerticalAlignment="Top" Width="99" Unchecked="CheckBox_UnChecked" Checked="CheckBox_Checked" />
        <CheckBox Content="说再见" Height="28" HorizontalAlignment="Left" Margin="202,104,0,0" Name="chkGoodBye" VerticalAlignment="Top" Width="99" Unchecked="CheckBox_UnChecked" Checked="CheckBox_Checked" />
        <TextBlock Height="114" HorizontalAlignment="Left" Margin="97,138,0,0" Name="tbResult" VerticalAlignment="Top" Width="259" TextWrapping="Wrap" />
    </Grid>
</Window>

