title: How do you set the initial state of a checkbox in WPF (either in XAML or code)?
body: <p>I have two simple related controls on a form, a <code>delete</code> button and a <code>confirm delete</code> checkbox.</p>
  
  <p>The idea is to protect against accidental deletions (don't worry, undo will be added later) but still allow the user to delete without annoying confirmations if they so wish.</p>
  
  <p>However, I want the initial state of the checkbox to be set. The XAML code is currently:</p>
  
  <pre><code>&lt;CheckBox Margin="0 5 0 0"
            x:Name="chkConfirmDel"
            Checked="chkConfirmDel_Change"&gt;
      Confirm delete?
  &lt;/CheckBox&gt;
  </code></pre>
  
  <p>but I can't see any obvious property for forcing the initial state, either in XAML or in the <code>Window_Loaded()</code> code.</p>