title: how to use radio buttons in xamarin forms
body: <p>Creating a Registration page, I need to get the following data from user.</p>
  <ul>
  <li>First Name</li>
  <li>Last Name</li>
  <li>Username</li>
  <li>Email</li>
  <li>Password</li>
  <li>Date of Birth</li>
  <li><strong>Gender</strong></li>
  <li><strong>User Role</strong></li>
  </ul>
  <p>For the last two parameters, I am unable to find how to use radio buttons in Xamarin.Forms. Following is my code for the Registration Page.</p>
  <pre><code>&lt;StackLayout BackgroundColor=&quot;#30af91&quot; Padding=&quot;60&quot;&gt;
  
  
  &lt;Entry Text=&quot;{Binding FirstName}&quot; Placeholder=&quot;First Name&quot;/&gt;
  &lt;Entry Text=&quot;{Binding LastName}&quot; Placeholder=&quot;Last Name&quot;/&gt;
  &lt;Entry Text=&quot;{Binding UserName}&quot; Placeholder=&quot;Last Name&quot;/&gt;
  &lt;Entry Text=&quot;{Binding Email}&quot; Placeholder=&quot;Email&quot; /&gt;
  &lt;Entry Text=&quot;{Binding Password}&quot; Placeholder=&quot;Password&quot; IsPassword=&quot;True&quot;/&gt;
  &lt;Entry Text=&quot;{Binding ConfirmPassword}&quot; Placeholder=&quot;Confirm Password&quot; IsPassword=&quot;True&quot;/&gt;
  &lt;DatePicker MinimumDate=&quot;1/1/1948&quot; MaximumDate=&quot;12/31/2007&quot;/&gt;
  
  
  &lt;!--Radio buttons for Gender
      1. Male   2.Female--&gt;
  
  &lt;!--Radio Buttons for UserRole
      1. Admin  2.Participant--&gt;
  
  &lt;Button Command=&quot;{Binding RegisterCommand}&quot; Text=&quot;Register&quot;/&gt;
  &lt;Label Text=&quot;{Binding Message}&quot; /&gt;
  
  
  &lt;/StackLayout&gt;
  </code></pre>