title: Cancel uncheck in WPF
body: <p>I use checkbox in WPF window. I use some logic in unchecked event of checkbox. And I want to cancel uncheck if need it in the body of this event. How can I do this?</p>
  
  <pre><code>    private void chApprove_Checked(object sender, RoutedEventArgs e)
      {
          btnAddDepartment.IsEnabled = true;
          brnRemoveDepartment.IsEnabled = true;
      }
  
      private void chApprove_Unchecked(object sender, RoutedEventArgs e)
      {
          if (lbSource.Count == 0)
          {
              btnAddDepartment.IsEnabled = false;
              brnRemoveDepartment.IsEnabled = false;
          }
          else
          {
              MessageBox.Show("Staff already in use! Release it first from dependecies!");
              CheckBox myCheckBox = e.Source as CheckBox;
              myCheckBox.IsChecked = true;
  
  
          }
      }
  </code></pre>
  
  <p>Impossible to cancel uncheck !!!</p>