title: Testing boolean value from resource, and modify it accordingly? (WPF)
body: <p>Suppose I have this in my window's resource:
      &lt;System:Boolean x:Key="MyBool" /></p>
  
  <p>Now how do I test it for its value? I've tried triggers etc but seem to further confuse myself.</p>
  
  <p>More specifically how do I change its value when a button is clicked?
  And how do I bind to the boolean resource, so when its value changes, some codes will be executed? (Using Triggers?)</p>
  
  <p><strong>Note</strong>: I do not want any code-behinds, I wish to do this in pure XAML.</p>
  
  <p>Thank you for your time reading this :P</p>