<Window x:Class="SwitchSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Switch 语句范例 (多重判断)" Height="163" Width="690" FontSize="18">
    <Grid>
        <Label Content="演唱会座位：" Height="34" HorizontalAlignment="Left" Margin="12,38,0,0" Name="label1" VerticalAlignment="Top" Width="123" />
        <ComboBox Height="34" HorizontalAlignment="Left" Margin="141,38,0,0" Name="cboSeat" VerticalAlignment="Top" Width="230" SelectionChanged="cboSeat_SelectionChanged">
            <ComboBoxItem Content="1-10 排" />
            <ComboBoxItem Content="11-20 排" />
            <ComboBoxItem Content="21-30 排" />
            <ComboBoxItem Content="31-40 排" />
            <ComboBoxItem Content="41-50 排" />
            <ComboBoxItem Content="51-60 排" />
            <ComboBoxItem Content="61-70 排" />
            <ComboBoxItem Content="71-80 排" />
            <ComboBoxItem Content="81-90 排" />
            <ComboBoxItem Content="91-100 排" />
        </ComboBox>
        <Label Content="查询票价：" Height="34" HorizontalAlignment="Left" Margin="388,38,0,0" Name="label2" VerticalAlignment="Top" Width="105" />
        <TextBox Height="34" HorizontalAlignment="Left" Margin="499,38,0,0" Name="txtPrice" VerticalAlignment="Top" Width="157" IsEnabled="False" IsReadOnly="True" />
    </Grid>
</Window>
