- There is no Tab Group box in the toolbox
- Solution: use GroupName in the .xaml file
- eg.
GroupName="MyRadioBtnGroup"/>
<RadioButton Content="Female" Height="72" HorizontalAlignment="Left" Margin="292,177,0,0" Name="femaleRadioButton" VerticalAlignment="Top" Checked="femaleRadioButton_Checked"
GroupName="MyRadioBtnGroup"/>
The traditional way of dealing with multiple radio buttons, with "one checked" behaviour, is to put the Radio Buttons in a group box. The Toolbox in the Windows Phone 7 Toolkit does not have a group box.
I found the solution here: http://social.msdn.microsoft.com/Forums/en/windowsphone7series/thread/89cf0ad0-e4bd-4baf-9532-157c30f3fd81
I was trying to do it programatically, and could not find a simple way to programatically set the state of the Radio Button, trying to use SetValue required a DependencyProperty...
Check out this link too for more details on Radio Button control in Windows Phone 7 Development...
ReplyDeletehttp://www.mindstick.com/Articles/a6d78097-46a3-4392-856e-640ce106b959/?RadioButton%20Control%20in%20Windows%207%20Phone%20Development