title: WPF Boolean Trigger
body: <p>I have a boolean in the Window class of my WPF application. How can I target a trigger depending on whether this boolean is true or false?</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Grid&gt;
    &lt;Grid.Triggers&gt;
      &lt;Trigger ... /&gt;
    &lt;/Grid.Triggers&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>Thanks.</p>