public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     if (value == null)
     {
         return(false);
     }
     if (!this.Negate)
     {
         return(ValueConverterUtilities.AssureBool(value, false));
     }
     return(!ValueConverterUtilities.AssureBool(value, true));
 }
Ejemplo n.º 2
0
 public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture)
 {
     return(!ValueConverterUtilities.AssureBool(o, false));
 }