title: XAML 'NOT' operator?
body: <pre><code>&lt;Button IsEnabled="{Binding (Not IsDisabled)}" /&gt;
  </code></pre>
  
  <p>Is there a way to do it with pure xaml, or I will have to do it via code?
  PS. I asked the question knowing that I can create a boolean converter like this: </p>
  
  <pre><code>&lt;ValueConversion(GetType(Boolean), GetType(Boolean))&gt; 
  Public Class BooleanFlagSwitchConverter : Implements IValueConverter
  
      Public Function Convert(value As Object, targetType As Type, 
              parameter As Object, culture As CultureInfo) As Object 
              Implements IValueConverter.Convert
          Return Not value
      End Function
  
      Public Function ConvertBack(value As Object, targetType As Type, 
              parameter As Object, ByVal culture As CultureInfo) As Object 
              Implements IValueConverter.ConvertBack
          Return Not value
      End Function
  
  End Class
  
  [ValueConversion(typeof(bool), typeof(bool))]
  public class BooleanFlagSwitchConverter : IValueConverter
  {
      public object Convert(object value, Type targetType, object parameter, 
          CultureInfo culture)
      {
          return !(bool)value;
      }
  
      public object ConvertBack(object value, Type targetType, object parameter, 
          CultureInfo culture)
      {
          return !(bool)value;
      }
  }
  </code></pre>