我想添加cheked单选或不C#和XAML <phone:phoneapplicationpage xmlns:phone="#unknown">
x:Class="kno_your_country.cq"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns ="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded" DataContext="{Binding}">
<!--LayoutRoot is the root grid where all page content is placed-->
<grid x:name="LayoutRoot" removed="Transparent" xmlns:x="#unknown">
<grid.rowdefinitions>
<rowdefinition height="Auto" />
<rowdefinition height="*" />
</grid.rowdefinitions>
<!--TitlePanel contains the name of the application and page title-->
<stackpanel x:name="TitlePanel" grid.row="0" margin="12,17,0,28">
<textblock x:name="ApplicationTitle" text="MY APPLICATION" style="{StaticResource PhoneTextNormalStyle}" />
<textblock x:name="qu" text="page name" margin="9,-7,0,0" style="{StaticResource PhoneTextTitle1Style}" />
</stackpanel>
<!--ContentPanel - place additional content here-->
<grid x:name="grd" grid.row="1" margin="12,0,12,0">
<listbox x:name="listBox">
<listbox.itemtemplate>
<datatemplate>
<stackpanel margin="10">
<textblock text="{Binding Txt}" />
<radiobutton name="a1" groupname="q" content="{Binding Answer1}" />
<radiobutton name="a2" groupname="q" content="{Binding Answer2}" />
<radiobutton name="a3" groupname="q" content="{Binding Answer3}" />
<radiobutton name="a4" groupname="q" content="{Binding Answer4}" />
</stackpanel>
</datatemplate>
</listbox.itemtemplate>
</listbox>
<Button Content="Button" Height="72" HorizontalAlignment="Left" Margin="137,529,0,0" Name="button1" VerticalAlignment="Top" Width="160" Click="button1_Click" />
</grid>
</grid>
<!--Sample code showing usage of ApplicationBar-->
<!--<phone:phoneapplicationpage.applicationbar>
<shell:applicationbar isvisible="True" ismenuenabled="True" xmlns:shell="#unknown">
<shell:applicationbariconbutton iconuri="/Images/appbar_button1.png" text="Button 1" />
<shell:applicationbariconbutton iconuri="/Images/appbar_button2.png" text="Button 2" />
<shell:applicationbar.menuitems>
<shell:applicationbarmenuitem text="MenuItem 1" />
<shell:applicationbarmenuitem text="MenuItem 2" />
</shell:applicationbar.menuitems>
</shell:applicationbar>
</phone:phoneapplicationpage.applicationbar>-->
</phone:phoneapplicationpage>
{C}