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)); }
public object ConvertBack(object o, Type targetType, object parameter, CultureInfo culture) { return(!ValueConverterUtilities.AssureBool(o, false)); }