Windows Phone 8.1 RadioButton

network | | 访问(64)
<StackPanel>
    <TextBlock FontSize="34" Height="57" Name="textBlock1" Text="你喜欢哪一个品牌的手机?" />
    <RadioButton GroupName="MCSites" Background="Yellow" Foreground="Blue" Content="A、诺基亚"  Click="RadioButton_Click" Name="a"/>
    <RadioButton GroupName="MCSites" Background="Yellow" Foreground="Orange" Content="B、苹果"  Click="RadioButton_Click" Name="b" />
    <RadioButton GroupName="MCSites" Background="Yellow" Foreground="Green" Content="C、HTC"  Click="RadioButton_Click" Name="c"/>
    <RadioButton GroupName="MCSites" Background="Yellow" Foreground="Purple" Content="D、其他的"  Click="RadioButton_Click" Name="d"/>
    <TextBlock FontSize="34" Height="57" Name="textBlock2" Text="你选择的答案是:" />
    <TextBlock FontSize="34" Height="57" Name="answer" />
</StackPanel>
private void RadioButton_Click(object sender, RoutedEventArgs e) {
    if (a.IsChecked == true) answer.Text = a.Content.ToString();
    else if (b.IsChecked == true) answer.Text = b.Content.ToString();
    else if (c.IsChecked == true) answer.Text = c.Content.ToString();
    else answer.Text = d.Content.ToString();
}