title: How to do a simple XAML (WPF) conditional binding on the Visibility property
body: <p>I have got a view model with a property:</p>
  
  <pre><code>public class MyModel
  {
      public bool IsEnabled {get;set;}
  }
  </code></pre>
  
  <p>I want to use this property to toggle a button state. If the boolean is true I want to hide the button, and otherwise show it.</p>
  
  <p>I tried things like:</p>
  
  <pre><code>&lt;Button Visibility= "{Binding IsEnabled ? Hidden : Visible  }"&gt;Enable&lt;/Button&gt;
  </code></pre>
  
  <p>But this doesn't fit.</p>
  
  <p>I tried some more complex solution but my guess is, I am missing something trivial.</p>
  
  <p>Any suggestions?</p>