title: A read-only CheckBox in C# WPF
body: <p>I am having a tricky problem, I want some slightly unusual behaviour from a checkbox and can't seem to figure it out. Any suggestions would be most welcome. The behaviour I want is:</p>
  
  <ol>
  <li>The CheckBox is enabled and ready for the user to click, IsChecked represents a bound  boolean value stored in a data structure</li>
  <li>The user clicks the CheckBox causing the click event to fire but the bound value in the data structure is NOT updated and the visual representation of the CheckBox is NOT updated but it is disabled to stop further clicking</li>
  <li>The click event triggers a message to be sent to a remote device which takes some time to respond</li>
  <li>The remote device responds causing the data structure to be updated with the new value, the binding then updates the isChecked status and the CheckBox gets reenabled for further clicking</li>
  </ol>
  
  <p>The problem I have is that although a OneWay data binding works at not updating the data structure when the CheckBox is clicked, the visual representation does change (which I think is odd, shouldn't IsChecked now act like a pointer to the value in the data structure).</p>
  
  <p>I can reverse the change in the Click() event and do the disable there as well but this is pretty messy. I can also have the set property of the data structure value to set an isEnabled value which is also bound to reenable the CheckBox but that seems messy too.</p>
  
  <p>Is there a clean way to do this? Perhaps with a derived CheckBox class? How can I stop the visual representation getting updated?</p>
  
  <p>Thanks</p>
  
  <p>Ed</p>