title: Change TextBox text and focus via CheckBox in XAML
body: <p>When I <strong>check</strong> or <strong>uncheck</strong> a <code>CheckBox</code>, I want to clear the <code>TextBox</code> and set focus. I implemented it using code-behind.</p>
  
  <p>My xmal:</p>
  
  <pre><code>&lt;CheckBox x:Name="checkbox1" Checked="checkbox1_Checked" Unchecked="checkbox1_Checked" /&gt;
  &lt;TextBox x:Name="textbox1" Text="Hello" /&gt;
  </code></pre>
  
  <p>My C#:</p>
  
  <pre><code>private void checkbox1_Checked(object sender, RoutedEventArgs e)
  {
      textbox1.Text = "";
      textbox1.Focus();
  }
  </code></pre>
  
  <p>Is it possible to do it all in XAML?</p>