title: How do I bind a checkbox's checked function in xaml/c#
body: <p>Hey, and thanks for looking.</p>
  
  <p>I have the following in my MainPage.xaml</p>
  
  <pre><code>&lt;TextBlock x:Name="ItemName1" Text="{Binding EventName, Mode=TwoWay}" Style="{StaticResource PhoneTextNormalStyle}" /&gt;
  &lt;CheckBox Margin="0,0,0,0" x:Name="Checkbox1" IsChecked="{Binding isCheckboxChecked, Mode=TwoWay}" Checked="EditData_Click"/&gt;
  </code></pre>
  
  <p>I am able to control the value of the checkbox via the binding, without any trouble. How can I make it so that the checked handler 'EditData_Click' can recognize the value of the corresponding EventName, and run some other code path accordingly. I have a switch case in mind, something like:</p>
  
  <pre><code>switch (EventName_string)
  {
      case "Dogs": // do something
    break;
      case "Cats": // do something else
  }
  </code></pre>