title: WPF if statement based on radio button checked or not
body: <p>I'm having difficulty with something which seems like it should be very simple.  I'm coming from Windows Forms and starting up with WPF.  I think I have a simple syntax issue but I can't seem to find a specific example for this radio button issue.</p>
  
  <p>I have a radio button on my GUI for a query to run either via a map selection or a list. When load is clicked, it should perform one operation if map is selected, a different operation for list.  Code looks similar to this:</p>
  
  <pre><code>private void Load_Click(object sender, RoutedEventArgs e)
  {
    if (rdBtnList.Checked == true)
    {
      //do this
    }
  
    // if rdBtnList not checked (ie if rdBtnMap is checked)
    // do this
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated.  Thanks.</p>