title: Disable text box when Check box is Unchecked during run time in C#
body: <p>I have a CheckBox and a TextBox. During the runtime,<br>
  if the CheckBox is Checked then the TextBox is enabled. </p>
  
  <p>I did it using following code</p>
  
  <pre><code>private void checkTime_Checked(object sender, RoutedEventArgs e)
  {
      if (checkTime.IsChecked == true)
      {
          txtTime_SR.IsEnabled = true;
      }
  }
  </code></pre>
  
  <p>What I need to do is, to disable the TextBox when the CheckBox is Unchecked during runtime.</p>
  
  <p>Any idea of doing this ?</p>