<Window x:Class="BreakSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="使用Break语句范例" Height="209" Width="475" FontSize="14">
    <Grid>
        <Label Content="请输入结束的数字：" Height="28" HorizontalAlignment="Left" Margin="12,23,0,0" Name="label1" VerticalAlignment="Top" Width="137" />
        <TextBox Height="28" HorizontalAlignment="Left" Margin="155,23,0,0" Name="txtNumber" VerticalAlignment="Top" Width="155" />
        <Button Content="计算" Height="28" HorizontalAlignment="Left" Margin="330,23,0,0" Name="btnCalculator" VerticalAlignment="Top" Width="104" Click="btnCalculator_Click" />
        <TextBlock Height="72" HorizontalAlignment="Left" Margin="12,74,0,0" Name="tbResult" VerticalAlignment="Top" Width="422" TextWrapping="Wrap" />
    </Grid>
</Window>
