title: Fetching selected radio button in wpf
body: <p>In WinForms I've used panel to group radio buttons and then this code to fetch selected radio button</p>
  
  <pre><code>var checkedValue = panelMyPanel.Controls.OfType&lt;RadioButton&gt;()
                          .FirstOrDefault(r =&gt; r.Checked);
  </code></pre>
  
  <p>Now I want to translate this to wpf and inside xaml I added radio buttons</p>
  
  <pre><code> &lt;RadioButton GroupName="myGroup" Name="Option1" Content="option one" IsChecked="True"  Width="40"/&gt;
   &lt;RadioButton GroupName="myGroup" Name="Option2" Content="option two" IsChecked="False" Width="80"/&gt;
   &lt;RadioButton GroupName="myGroup" Name="Option3" Content="option three" IsChecked="False" Width="60"/&gt;
  </code></pre>
  
  <p>how to know which radio btn is selected in code behind?</p>