title: How do I save the Checked property state to Properties.Settings When using WPF?
body: <p>I'm converting a program from WinForms to WPF. There seems to be a lot of unnecessary syntax changes. But the one I'm having trouble with is saving the "checked" or "unchecked" status to Properties.Settings. In WinForms I used:</p>
  
  <pre><code>    private void chkBackup_CheckedChanged(object sender, EventArgs e)
      {
          Properties.Settings.Default.Backup = chkBackup.Checked;
          Properties.Settings.Default.Save();
      }
  </code></pre>
  
  <p>There doesn't seem to be an Event for "CheckedChanged" in WPF, So I'm trying:</p>
  
  <pre><code>    private void chkBackup_Checked(object sender, RoutedEventArgs e)
      {
          Properties.Settings.Default.Backup = (chkBackup.IsChecked == true);
          Properties.Settings.Default.Save();
      }
  
      private void chkBackup_Unchecked(object sender, RoutedEventArgs e)
      {
          Properties.Settings.Default.Backup = (chkBackup.IsChecked == false);
          Properties.Settings.Default.Save();
      }
  </code></pre>
  
  <p>I get no errors with this, but when I uncheck the checkBox, the settings aren't changed. Please help. What am I doing wrong. </p>
  
  <p>Thanks</p>