title: How to check only one radio button at a time (others disable)
body: <p>I am working in silverlight c# and i have situation where i create radio buttons programatically. My code to do so is this:</p>
  
  <pre><code> Grid childGrid = CreateChildGrid(); 
   int NumberOfRadioButton =0;
  
   RadioButton[] RadioBut= new RadioButton[5];
   int count = 0;
   foreach (var item in param.Component.Attributes.Items)// this  param.Component.Attributes.Items value is 4 in fact.
   {                 
       NumberOfRadioButton++;
       RadioBut[count] = new RadioButton();
       RadioBut[count].GroupName = item;
       RadioBut[count].Content = item;
       sp.Children.Add(RadioBut[count]);
       count++;
   }
  </code></pre>
  
  <p><strong>Problem:</strong> The problem is it checks all the button where as i want only one button checked at a time . I mean if one checked the others must be disable.</p>
  
  <p>Could some one please help me to achieve my target ? Thanks a lot.</p>
  
  <p><strong>Note:</strong> I am using silverlight to do so.</p>